Page 1 of 1

Allow scripts from a site only on certain sites

Posted: Tue Mar 26, 2019 9:49 pm
by Guest
I'm using an old version of NoScript (5.1.7). Can I allow scripts from SiteX to run only on SiteA and SiteB and not others?

Re: Allow scripts from a site only on certain sites

Posted: Tue Mar 26, 2019 10:59 pm
by barbaz
FAQ 8.10

off-topic: Your NoScript is outdated, please update to latest NoScript Classic from https://noscript.net/getit (5.1.9 at time of writing).

Re: Allow scripts from a site only on certain sites

Posted: Wed Mar 27, 2019 12:41 am
by Guest
Thanks!
I tried to update to 5.1.9, but get this message:
https://support.mozilla.org/en-US/kb/ad ... =inproduct

Re: Allow scripts from a site only on certain sites

Posted: Wed Mar 27, 2019 2:13 am
by barbaz
You're welcome Image
Guest wrote: Wed Mar 27, 2019 12:41 am I tried to update to 5.1.9, but get this message:
There are several options for getting rid of that -

1) Switch to Firefox 52 ESR, and set about:config > xpinstall.signatures.required to false

2) Switch to SeaMonkey or Waterfox, which don't require addon signing.

3) Switch to the unbranded build of Firefox 56.0.2, which doesn't require addon signing. (I can't find the download link anymore??)

4) As noted on https://noscript.net/getit#classic, you can apply this hack to your existing Firefox 56 that makes it allow unsigned extensions (I don't recommend this option)

Re: Allow scripts from a site only on certain sites

Posted: Wed Mar 27, 2019 6:19 pm
by Guest
I'm curious, if 5.1.9 is the last good classic version, why isn't it signed?

Re: Allow scripts from a site only on certain sites

Posted: Wed Mar 27, 2019 6:22 pm
by barbaz
It was released after Mozilla stopped signing legacy extensions.

Re: Allow scripts from a site only on certain sites

Posted: Wed Mar 27, 2019 6:53 pm
by Guest
Is #4 not recommended because of the problem harryray2 encountered? Is it unsafe if I use the hack to install NoScript, then remove the hack? Or is it not recommeneded for another reason?

Re: Allow scripts from a site only on certain sites

Posted: Wed Mar 27, 2019 9:30 pm
by barbaz
I personally don't recommend the hack, because I don't know if it can have unintended consequences, given that the release Firefox builds are explicitly designed to disallow unsigned extensions. The other options are more straightforward.

Re: Allow scripts from a site only on certain sites

Posted: Wed Mar 27, 2019 10:22 pm
by Guest
Switching to an older Firefox or fork of Firefox is kinda scary to me. Would you recommend using uMatrix instead of NoScript?

Re: Allow scripts from a site only on certain sites

Posted: Wed Mar 27, 2019 11:49 pm
by barbaz
Guest wrote: Wed Mar 27, 2019 10:22 pm Switching to an older Firefox or fork of Firefox is kinda scary to me.
(The unbranded Firefox build is neither of those.)
Guest wrote: Wed Mar 27, 2019 10:22 pm Would you recommend using uMatrix instead of NoScript?
µMatrix is not a replacement for NoScript Classic. I use both side-by-side in Waterfox.

There are many threads discussing this subject already, e.g. viewtopic.php?f=8&t=22001

Re: Allow scripts from a site only on certain sites

Posted: Thu Mar 28, 2019 4:06 am
by Guest
Do you use uBlock Origin?

Re: Allow scripts from a site only on certain sites

Posted: Thu Mar 28, 2019 1:14 pm
by barbaz
Guest wrote: Thu Mar 28, 2019 4:06 amDo you use uBlock Origin?
Yes, that too

Re: Allow scripts from a site only on certain sites

Posted: Thu Mar 28, 2019 6:40 pm
by Guest
Do you have scripts disallowed? If you do, isn't there a lot of clicking to allow scripts for a site? Click to open panel, click each domain, click to refresh. Repeat clicks for all addons. More sites require JavaScript to run these days and they pull in scripts from multiple domains.

Re: Allow scripts from a site only on certain sites

Posted: Thu Mar 28, 2019 7:09 pm
by barbaz
I let NoScript handle the script blocking. I use µMatrix for broad per-site permissions (and blocking 3rd-party frames), and uBlock Origin for privacy protection & blacklist-based protection & to clean up annoyances. Typically what I want to allow is only blocked by one of the three addons and I can often tell which one right away. When I do have to unblock something twice, it's usually allowing a 3rd-party frame and then allowing scripts inside that frame.

The way I have set up, I rarely ever need to go through all 3 addons and do all that redundant clicking you describe.