Allow webgl ONLY on https://www.google.com/maps/ and subpages

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

Allow webgl ONLY on https://www.google.com/maps/ and subpages

Post by Anged »

Hello,
Basically, I want to allow webgl on this regex: /^https:\/\/www\.google\.com\/maps\/.+/

Here's my current exported conf:

Code: Select all

"custom": {
  "https://www.google.com/maps/": {
    "capabilities": ["script", "webgl", "fetch"]
  }
}
This works if I go manually to google.com/maps and then browse from there, but if I reload the page or follow a shared link, noscript doesn't match anymore, I assume because of everything after /maps/...

I could put §:www.google.com but I'm not a fan of allowing everything under the google domain...
Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0
barbaz
Senior Member
Posts: 11136
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow webgl ONLY on https://www.google.com/maps/ and subpages

Post by barbaz »

NoScript permissions don't have that level of granularity.

NoScript is a security tool. In NoScript's trust model, either you trust a site or you don't. Since a malicious site could easily put malicious resources at any path, trusting by path prefix in this model would give a false sense of security.

NoScript's support for allowing individual paths is only exact paths, which exists so that blocked object placeholders work as expected.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0
Post Reply