Page 1 of 1

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

Posted: Sun Feb 20, 2022 12:49 am
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?

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

Posted: Thu Mar 17, 2022 3:26 pm
by barbaz
bump

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

Posted: Wed Mar 30, 2022 4:57 pm
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? )))

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

Posted: Thu May 05, 2022 6:03 pm
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?

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

Posted: Wed Jan 11, 2023 12:13 am
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?