Page 1 of 1

Script Specific Blocking

Posted: Fri Mar 25, 2011 7:29 pm
by ben
Greetings, I was wondering if it would be possible to add a more granular setting to NoScript that would allow me to block specific scripts on a web site?

After searching through the forums I have seen similar questions responded to by suggesting the installation of the Controle de Scripts add-on for Firefox but that doesn't do exactly what I would like to do since it deals with JavaScript functionality instead of the scripts themselves. I would like to allow or disallow specific scripts from running on a page even if they perform the same functions. For instance, if there are two scripts that open a pop-up window I would like to choose to allow one of the scripts to run but not the other.

Thanks,

Ben

Re: Script Specific Blocking

Posted: Fri Mar 25, 2011 8:10 pm
by dhouwn
Rhetorical questions: What are scripts on a page? Where does a JS "script" begin and where end?
I guess you would probably see JS code in different <script> elements and every inline script as separate, but I am not even sure Firefox does internally any distinction of this sort and top of that how in the world should a user be able to control that?

Re: Script Specific Blocking

Posted: Mon Aug 29, 2011 8:17 pm
by ben
Sorry, I posted this question, missed the reply and completely forgot about it until I needed it again.

I understand what you are saying and certainly agree but maybe if I describe what I want you can offer a better way to accomplish my goals.

I am on a website that uses javascript to render the page and disable right-click, this reinforces your whole point of "Where does a JS "script" begin and where end?" In IE I have the option to prompt me before a script runs. When I load a page I am prompted several times. If I accept the scripts that render the page and do not accept the scripts that provide "security" for the page I can show the vendor that this is not a good way to accomplish what they want because it requires trust in the client.

So, the real question is how can I leverage NoScript to only load the javascript functions that I want to load for a certain page and not others?

Thanks.