Page 1 of 1

Disabling inline scripts only

Posted: Thu Jul 12, 2012 4:59 pm
by Alqualos
I've been using NoScript for a while, and usually it was enough to disable scripts for some pages completely, or enable site-local scripts only.

There's one really broken site, however (zr.ru), which makes Firefox wait for page load indefinitely for some reason and sometimes even loose focus, which is especially annoying. If I disable scripts completely, it works almost fine, but I'm unable to see comments to the articles, and they can be fun to read sometimes.

I was experimenting with ABE, AdBlock Plus and Firebug for a while, but was unable to prevent these annoying scripts from crippling my browsing experience. I can't even understand the nature of the problem - Firebug makes it look like no scripts are constantly doing anything, and the page seems to load within a few seconds.

What I would like to try now is to block all scripts except the one that loads comments from the forum. I've been able to figure out which one thanks to AdBlock+ - when I block it, the comments disappear. So I'd like to block everything, then allow that single external script. I understand that it can break without the proper environment set up by inline scripts, but at least it's worth a try - it could be pretty much independent from the local page.

Is it possible at all? Does NoScript allow to disable inline scripts only? I could block the rest (other external scripts) with AdBlock Plus if I need.

P. S. Well, I've just figured out that it won't help me anyway - the external scripts that loads comments is called by an inline script. But the question remains valid - it could be useful on other sites.

Re: Disabling inline scripts only

Posted: Thu Jul 12, 2012 8:03 pm
by Giorgio Maone
The answer is no.
If you block inline scripts, Firefox doesn't even try to download 3rd party scripts (in facts, in this case NoScript checks the <script> elements in the page's DOM rather than looking at the actual load attempts to give you a list of the blocked script sources).