Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

API - "disable/enable all scripts"

1440558161
vÍnce
Pro
Sheet Author
Added a new suggestion. &nbsp;Cheers <a href="https://app.roll20.net/forum/post/2345730/api-disable-slash-enable-all-scripts/?pageforid=2345730#post-2345730" rel="nofollow">https://app.roll20.net/forum/post/2345730/api-disable-slash-enable-all-scripts/?pageforid=2345730#post-2345730</a>
1440593088
The Aaron
Pro
API Scripter
Disable: javascript:_.each($('button.togglescript'),function(b){var $b=$(b);if($b.text()==='Disable Script'){$b.click();}}); Enable: javascript:_.each($('button.togglescript'),function(b){var $b=$(b);if($b.text()==='Enable Script'){$b.click();}}); You might have to refresh the script page to get the colors of the tabs to update completely, but I tried this in my test campaign with 119 scripts, and it worked fine. =D
1440606731

Edited 1440606829
vÍnce
Pro
Sheet Author
The Aaron said: Disable: javascript:_.each($('button.togglescript'),function(b){var $b=$(b);if($b.text()==='Disable Script'){$b.click();}}); Enable: javascript:_.each($('button.togglescript'),function(b){var $b=$(b);if($b.text()==='Enable Script'){$b.click();}}); You might have to refresh the script page to get the colors of the tabs to update completely, but I tried this in my test campaign with 119 scripts, and it worked fine. =D Thanks for the code Aaron. &nbsp;I really need this for Stephen's scripts. Only 119 huh? &nbsp;X~P