Page 1 of 1

"Allow script for this page only" kind of option

Posted: Mon Jun 06, 2016 2:52 pm
by Guest
Is it possible to whitelist scripts for its own domain only, or for some given page?

E.g. I log there everyday to example.com to post pictures of my cat and the site won't work without JavaScript. Surely I want to whitelist example.com to avoid to have to enable it everytime I log in. On the other side, I couldn't care less of example.com's scripts when I am browsing other sites. Possibly there are also other scripts from other web sites (e.g. from exmpl.co that also belongs to example.com) that I want to allow on example.com only. There are also other scripts on example.com that I would rather not have to run, and I would thus rather avoid allowing all script for example.com.

Is there any way to achieve this?

Re: "Allow script for this page only" kind of option

Posted: Mon Jun 06, 2016 4:58 pm
by barbaz
https://noscript.net/faq#qa8_10
or wait for noscript 3

Re: "Allow script for this page only" kind of option

Posted: Thu Jun 09, 2016 12:48 am
by Thrawn
Guest wrote:I couldn't care less of example.com's scripts when I am browsing other sites.
If you actually don't care, then you can just permanently whitelist example.com.

There are solutions, such as ABE or another extension like RequestPolicy/Policeman/µMatrix, but they take more effort to manage. ABE requires writing an appropriate rule, and the other extensions will make all your permissions site-specific, so there will be extra work for each site, similar to the work that NoScript requires.

Re: "Allow script for this page only" kind of option

Posted: Thu Jun 09, 2016 1:50 am
by barbaz
Thrawn wrote:the other extensions will make all your permissions site-specific
Not necessarily. µMatrix for example can be configured to default-Allow everything and default-block what you want blocked. Then use its point-and-click interface to assign site-specific permissions. This is more or less one of the ways I use µMatrix (but I do it for *all* content types, not just active content) and it's a nice way to deal with the problem.

Probably worth mentioning in viewtopic.php?f=18&t=20815, where further discussion of µMatrix specifics would be best off anyway.
EDIT viewtopic.php?p=83224#p83224