How to create contextual permission in Options > Per-site Permissions?

Ask for help about NoScript, no registration needed to post
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

How to create contextual permission in Options > Per-site Permissions?

Post by barbaz »

How to create new contextual permission in NoScript Options > Per-site Permissions? Or turn an existing permission contextual there?

I first looked for an "Add New" type option in the drop-down for CUSTOM. But it only lists "ANY SITE". And the "Search or add a web site:" just greys out the "+" button when trying to add a contextual permission written in Mozilla style, e.g.

Code: Select all

maone.net^firstPartyDomain=maone.net
What am I missing?
*Always* check the changelogs BEFORE updating that important software!
-
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: How to create contextual permission in Options > Per-site Permissions?

Post by barbaz »

bump
*Always* check the changelogs BEFORE updating that important software!
-
Mad_Man_Moon
Senior Member
Posts: 75
Joined: Fri Oct 27, 2017 12:02 pm

Re: How to create contextual permission in Options > Per-site Permissions?

Post by Mad_Man_Moon »

Am also interested (if I'm understanding it properly) ... have subscribed!

((( i suppose the old export --> edit --> import trick will have to suffice in the meantime, right? )))
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: How to create contextual permission in Options > Per-site Permissions?

Post by barbaz »

bump.

Without this, people who run the browser in a sandbox that gets dumped on quit cannot create permanent contextual permissions.

Is there a way to manually enter contextual permissions in NoScript Options? If not, could it please be added?
*Always* check the changelogs BEFORE updating that important software!
-
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: How to create contextual permission in Options > Per-site Permissions?

Post by barbaz »

barbaz wrote: Thu May 05, 2022 6:03 pm Is there a way to manually enter contextual permissions in NoScript Options?
Turns out there is, but it's somewhat convoluted and tricky to get right:

1) in the disposable sandbox, NoScript Options > Advanced, check "Debug"

2) in the Debug textbox, find and copy the entry with the contextual permission

3) open the real profile, go NoScript Options > Advanced, check "Debug"

4) paste the permission

5) verify in NoScript Options > Per-site Permissions that the permission is there and set correctly

6) back to Advanced, un-check "Debug"

Image

Unfortunately, I had trouble with this because I was pasting the permission in the wrong place - I got no error feedback, but the permission wasn't being set. I would like to be sure that my mis-paste hasn't cluttered up NoScript extension storage with useless dross. But my usual method

Code: Select all

chrome.storage.sync.get(null, console.log);
doesn't produce human-parseable output when used with NoScript.

Is there a better way to check that NoScript storage only contains actual NoScript settings? Or does the "Debug" textbox automatically erase mistakes like that, so no need to check to be sure?
*Always* check the changelogs BEFORE updating that important software!
-
Post Reply