noscript icon indicating copy to clipboard operation
noscript copied to clipboard

Regular expressions in allow rules?

Open qs-arno opened this issue 3 months ago • 1 comments

Some sites have..."tricky" subdomain use that it'd be nice to be able to get a little more granular than just what you get with "List full addresses in the permissions popup". I tried opening up the per-site permissions list in the settings, but I don't see any way to configure arbitrary rules. Is there a way to specify a regular expression for an allow rule?

Here's some examples of what I'm talking about, where you either have to allow the whole domain (twitch.tv or youtube.com), or constantly individually whitelist a never-ending supply of deep subdomains.

Twitch

  • https://video-edge-*.pdx01.abs.hls.ttvnw.net/
  • https://*.j.cloudfront.hls.ttvnw.net/

YouTube

  • https://rr2----sn-*.googlevideo.com/
  • https://rr3----sn-*.googlevideo.com/

qs-arno avatar Sep 28 '25 12:09 qs-arno

No, indeed there's no way currently to configure arbitrary rules like that, because some permissions are enforced through the Content Security Policy web platform directive, which doesn't support wildcards nor regular expressions.

Keeping this issue open in case something comes up in the future making it more viable.

hackademix avatar Oct 11 '25 11:10 hackademix