Page 1 of 1

webExt-Noscript version and regular expressions/wildcards?

Posted: Sun Mar 01, 2020 4:17 pm
by bsdharry
Hello and thanks a lot for the ongoing NoScript development.
Recently I changed from FF52 to Waterfox current - the unavoidable goodbye for the legacy NoScript addon.
I had a semi-sophisticated autoadmin dealing with whitelists, which contained something like this:
regex https?://\\w{12,20}\\.cloudfront.net|https?://www-\\d+\\.ibm\\.com|https?://www\\d*\\.hp\\.com
I can't remember where I found any documentation about no-script regex supprt.
Again, I cannot find anything about regex for webExt-NoScript.

Quick experiments with exporting, altering noscript_data.txt (json), and re-importing tells me there is no regex support.

Is there any other kind of wildcard definition?
What if I want to allow "sub1.my.tld", "sub2.my.tld", "subN.sub1.my.tld" but _not_ "my.tld"?

Thanks for any help,
-harry
Btw. I like the new UI and think this much less sacring for regular users!

Re: webExt-Noscript version and regular expressions/wildcards?

Posted: Sun Mar 01, 2020 5:55 pm
by barbaz
NoScript Classic doesn't support regex whitelist either. Where were you entering those regex?
bsdharry wrote: Sun Mar 01, 2020 4:17 pm What if I want to allow "sub1.my.tld", "sub2.my.tld", "subN.sub1.my.tld" but _not_ "my.tld"?
Currently you would have to manually enter "sub1.my.tld" and "sub2.my.tld" in NoScript Options > Per-site Permissions.