Page 1 of 1

Disallow special scripts

Posted: Sat May 12, 2012 10:41 am
by Saad
Hi,
Firefox has a good option. it is 'Options > Content > Advanced JavaScript Settings' . but scripts are just few. i think it is chance for NoScript ! to augment scripts. or even Noscript can add this capability: Users be able to define a disallow script. users should copy script in page source and paste it in Noscript option.

i think this is useful for many users to disallow scripts, like a script that not allow to select page's texts.

Maybe this feature exist in Noscript but i don't know :!: :?: :?: :?:

Re: Disallow special scripts

Posted: Sat May 12, 2012 2:33 pm
by dhouwn
Not directly, no, but there is a feature called surrogate scripts that makes it possible to insert scripts into websites that change the scripts there.

Re: Disallow special scripts

Posted: Sat May 12, 2012 10:41 pm
by Tom T.
Have you looked at Greasemonkey or Scriptish?

Re: Disallow special scripts

Posted: Sun May 13, 2012 3:14 am
by Saad
i don't want run new script. i want block some scripts.
Users be able to block special scripts. users should copy script in page source and paste it in Noscript option.

Re: Disallow special scripts

Posted: Sun May 13, 2012 6:30 am
by Tom T.
Saad wrote:i don't want run new script. i want block some scripts.
Users be able to block special scripts. users should copy script in page source and paste it in Noscript option.
This is not practical. Right now, Yahoo Mail is running 107 scripts on my browser, and that is *mail only*. (yahoo.com is forbidden). Some of them are small, but some are as much as 80k.

If you mean, to put a code snippet into NS, and block all scripts matching that snippet, wouldn't it be easy for sites to do the same function in various different ways? (slightly different coding)

Just mark the ones you don't like as Untrusted, then they'll never bother you again. You need do this only once at each site.
Or leave them default-denied.

I don't think the idea is practical, but if Giorgio can do it, and wants to, no objection here.