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
This post has been closed. You can still view previous posts, but you can't post any new replies.

API - "disable/enable all scripts"

August 26 (9 years ago)

Edited September 06 (9 years ago)
vÍnce
Pro
Sheet Author
Just a small quality of life suggestion to include a "disable/enable all" option on the API Scripts page.  Currently if you need to isolate a problematic script you often need to disable and enable scripts one at a time and depending on the number of scripts this equates to wasted time. Cheers

EDIT/UPDATE: I think Aaron's suggestion to use a bookmarklet to solve this minor issue with scripts is sufficient. Vote pulled.
August 26 (9 years ago)
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
That is a good one! As soon as I free up a vote its coming here.
August 26 (9 years ago)
The Aaron
Roll20 Production Team
API Scripter
This sounds like a great idea!

In the interim, here are a few bookmarklets to give you this behavior now:

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 need to refresh the page to get the tab colors to all be correct. This worked great in my test game with 119 scripts... =D

August 26 (9 years ago)
vÍnce
Pro
Sheet Author
Oh, the irony.  The whole reason I need this suggestion is because of your scripts Stephen.  Luckily Aaron comes along with his Bookmarklets of Wonder and saves the day, yet again.  lol
September 06 (9 years ago)
vÍnce
Pro
Sheet Author
Pulling my suggestion since Aaron's bookmarklet makes easy work of enabling/disabling all api scripts.  Now to come up with a new suggesiton...
February 14 (6 years ago)
Roll20 Dev Team
Pro
Marketplace Creator

Thanks for the suggestion!

After 30 days, Suggestions and Ideas with fewer than 10 votes are closed and the votes are refunded to promote freshness.

Your suggestion didn't build the right momentum this time, but feel free to submit it again! We find that the best suggestions describe the problem you are having, and the solution you want. You can learn more about the process of making suggestions on the Roll20 Wiki! More details can be found here.