NoScript + setTimeout in Greasemonkey = fail
Posted: Sun Dec 05, 2010 1:53 am
I have both NoScript and Greasemonkey installed, and use several GM scripts to add functionality to websites I regularly visit. Lately, I decided to write my own GM script for a page, but my setTimeout calls did nothing - it was like the setTimeout call wasn't there at all. No errors, no warnings, just... nothing.
I started Googling and eventually reached http://userscripts.org/topics/2992?page=1, where I found that NoScript is apparently blocking the setTimeout calls. Sure enough, as soon as I allowed scripts on my site (just my site's domain, none of the adware domains running scripts on the site) the setTimeout calls started working as expected. I revoked the temporary permissions and down went setTimeout again.
Is there anything I can do about this, or am I stuck allowing the site to run scripts so I can use my GM script?
Thanks!
I started Googling and eventually reached http://userscripts.org/topics/2992?page=1, where I found that NoScript is apparently blocking the setTimeout calls. Sure enough, as soon as I allowed scripts on my site (just my site's domain, none of the adware domains running scripts on the site) the setTimeout calls started working as expected. I revoked the temporary permissions and down went setTimeout again.
Is there anything I can do about this, or am I stuck allowing the site to run scripts so I can use my GM script?
Thanks!