webExt-Noscript version and regular expressions/wildcards?

Ask for help about NoScript, no registration needed to post
bsdharry

webExt-Noscript version and regular expressions/wildcards?

Post 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!
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

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

Post 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.
*Always* check the changelogs BEFORE updating that important software!
-
Post Reply