Allow scripts from a site only on certain sites

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

Allow scripts from a site only on certain sites

Post by Guest » Tue Mar 26, 2019 9:49 pm

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?
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0

barbaz
Senior Member
Posts: 9176
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow scripts from a site only on certain sites

Post by barbaz » Tue Mar 26, 2019 10:59 pm

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

Guest

Re: Allow scripts from a site only on certain sites

Post by Guest » Wed Mar 27, 2019 12:41 am

Thanks!
I tried to update to 5.1.9, but get this message:
https://support.mozilla.org/en-US/kb/ad ... =inproduct
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0

barbaz
Senior Member
Posts: 9176
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow scripts from a site only on certain sites

Post by barbaz » Wed Mar 27, 2019 2:13 am

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

Guest

Re: Allow scripts from a site only on certain sites

Post by Guest » Wed Mar 27, 2019 6:19 pm

I'm curious, if 5.1.9 is the last good classic version, why isn't it signed?
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0

barbaz
Senior Member
Posts: 9176
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow scripts from a site only on certain sites

Post by barbaz » Wed Mar 27, 2019 6:22 pm

It was released after Mozilla stopped signing legacy extensions.
*Always* check the changelogs BEFORE updating that important software!
-

Guest

Re: Allow scripts from a site only on certain sites

Post by Guest » Wed Mar 27, 2019 6:53 pm

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?
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0

barbaz
Senior Member
Posts: 9176
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow scripts from a site only on certain sites

Post by barbaz » Wed Mar 27, 2019 9:30 pm

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

Guest

Re: Allow scripts from a site only on certain sites

Post by Guest » Wed Mar 27, 2019 10:22 pm

Switching to an older Firefox or fork of Firefox is kinda scary to me. Would you recommend using uMatrix instead of NoScript?
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0

barbaz
Senior Member
Posts: 9176
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow scripts from a site only on certain sites

Post by barbaz » Wed Mar 27, 2019 11:49 pm

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

Guest

Re: Allow scripts from a site only on certain sites

Post by Guest » Thu Mar 28, 2019 4:06 am

Do you use uBlock Origin?
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0

barbaz
Senior Member
Posts: 9176
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow scripts from a site only on certain sites

Post by barbaz » Thu Mar 28, 2019 1:14 pm

Guest wrote:
Thu Mar 28, 2019 4:06 am
Do you use uBlock Origin?
Yes, that too
*Always* check the changelogs BEFORE updating that important software!
-

Guest

Re: Allow scripts from a site only on certain sites

Post by Guest » Thu Mar 28, 2019 6:40 pm

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.
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0

barbaz
Senior Member
Posts: 9176
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow scripts from a site only on certain sites

Post by barbaz » Thu Mar 28, 2019 7:09 pm

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

Post Reply