Page 1 of 1

Using the Custom selector

Posted: Fri Feb 07, 2025 11:26 am
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?

Re: Allow FB scripts only on facebook.com?

Posted: Fri Feb 07, 2025 1:07 pm
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.

Using the Custom selector

Posted: Fri Feb 14, 2025 10:37 am
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?

Re: Using the Custom selector

Posted: Fri Feb 14, 2025 1:54 pm
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)

Re: Using the Custom selector

Posted: Fri Feb 14, 2025 3:25 pm
by colorbars
Ah! I totally get it now. Thanks for your help.