"Allow script for this page only" kind of option

Ask for help about NoScript, no registration needed to post
Guest

"Allow script for this page only" kind of option

Post 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?
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.0
barbaz
Senior Member
Posts: 11066
Joined: Sat Aug 03, 2013 5:45 pm

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

Post by barbaz »

https://noscript.net/faq#qa8_10
or wait for noscript 3
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

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

Post 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.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0
barbaz
Senior Member
Posts: 11066
Joined: Sat Aug 03, 2013 5:45 pm

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

Post 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
*Always* check the changelogs BEFORE updating that important software!
-
Post Reply