Using the Custom selector

Ask for help about NoScript, no registration needed to post
colorbars
Posts: 3
Joined: Fri Feb 07, 2025 11:19 am

Using the Custom selector

Post by colorbars »

I recently started using this feature but I've run into a problem where the single domain set under custom reverts to 'any site'. I haven't been able to pin down a specific cause or timing of when that happens. Any idea how to keep that from happening?
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
barbaz
Senior Member
Posts: 11019
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow FB scripts only on facebook.com?

Post by barbaz »

colorbars wrote: Fri Feb 07, 2025 11:26 am I recently started using this feature but I've run into a problem where the single domain set under custom reverts to 'any site'. I haven't been able to pin down a specific cause or timing of when that happens. Any idea how to keep that from happening?
That is not a setting, it's a selector for which permissions to display/configure. Your configured custom permissions should still be there and should show if you select the single domain.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0
colorbars
Posts: 3
Joined: Fri Feb 07, 2025 11:19 am

Using the Custom selector

Post by colorbars »

(This is a follow-up to my comment in the 'Allow FB scripts only on facebook.com?' thread.)

I'm trying to use Custom and I'm not sure I'm doing it correctly. Specifically I'm trying to allow www.google.com to run scripts only when I'm on a google.com page. Here's what I did and what happened.

1) I start at https://www.google.com/

2) In NoScript I select Custom on the line for https://www.google.com/, check the script box and at the top where it has 'Enable these capabilities when top page matches' I select '...google.com'

3) When I go to a page on another domain that uses a script from www.google.com (for example https://x10hosting.com/login) the script is loaded and run, and the 'Enable these capabilities' for www.google.com shows 'ANY SITE', which is not what I selected earlier.

Am I misunderstanding how this is supposed to work?
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0
barbaz
Senior Member
Posts: 11019
Joined: Sat Aug 03, 2013 5:45 pm

Re: Using the Custom selector

Post by barbaz »

The way it should work is:

1) start at https://www.google.com/

2) NoScript popup > set ...google.com to CUSTOM

3) set "Enable these capabilities when top page matches" to "ANY SITE", and set the shown permissions to what you want for most sites

4) set "Enable these capabilities when top page matches" to "...google.com", and set the shown permissions to what you want for only on google.com

Changing the selection in the drop-down does not make any changes to any permissions. It's more like switching between different tabs (like in NoScript Options > General > (Default/Trusted/Untrusted) tabs)
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0
colorbars
Posts: 3
Joined: Fri Feb 07, 2025 11:19 am

Re: Using the Custom selector

Post by colorbars »

Ah! I totally get it now. Thanks for your help.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0
Post Reply