Change [Report Only] messages level

Ask for help about NoScript, no registration needed to post
User avatar
BajoFondo
Posts: 2
Joined: Wed Dec 18, 2024 12:32 pm

Change [Report Only] messages level

Post by BajoFondo »

Hi, Giorgio!

Maybe you can change the message level of your `[Report Only]` debug in Chrome to info or warning, better than error.

These messages appear by the hundreds, making it impossible to debug a web development project in Chromium. I'm an absolute fan of Fx, but there's no choice but to test that everything works in the most popular browser.

PS: I finally got through your spam filter, yesterday it was impossible for me to reply to this thread.

Noscript is interfering with Content Security Policy (CSP)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
barbaz
Senior Member
Posts: 11064
Joined: Sat Aug 03, 2013 5:45 pm

Re: Change [Report Only] messages level

Post by barbaz »

BajoFondo wrote: Thu Dec 19, 2024 9:42 am Maybe you can change the message level of your `[Report Only]` debug in Chrome to info or warning, better than error.
Those messages look to be coming from Chromium, not NoScript, in which case NoScript wouldn't have control over them.
BajoFondo wrote: Thu Dec 19, 2024 9:42 am These messages appear by the hundreds, making it impossible to debug a web development project in Chromium.
I tried to filter them out with a regular expression, but couldn't get it to work. Not sure how Chromium devtools console is matching the regex against the messages? Image

Unless you're specifically testing how your site behaves in the presence of NoScript, it wouldn't be unreasonable to disable NoScript for web dev work (at least "Disable restrictions for this tab"). You trust the site that you are developing yourself, don't you? :o
BajoFondo wrote: Thu Dec 19, 2024 9:42 am PS: I finally got through your spam filter, yesterday it was impossible for me to reply to this thread.

Noscript is interfering with Content Security Policy (CSP)
Would you like this post merged with the other thread? I think it would be fine there, or fine to leave it here as a new thread if you prefer. Up to you :)
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
User avatar
BajoFondo
Posts: 2
Joined: Wed Dec 18, 2024 12:32 pm

Re: Change [Report Only] messages level

Post by BajoFondo »

Hi, barbaz.
barbaz wrote: Thu Dec 19, 2024 5:49 pm Those messages look to be coming from Chromium, not NoScript, in which case NoScript wouldn't have control over them.
But until NS version 12 they did not appear. Can't do anything?
barbaz wrote: Thu Dec 19, 2024 5:49 pm I tried to filter them out with a regular expression, but couldn't get it to work. Not sure how Chromium devtools console is matching the regex against the messages? Image

Unless you're specifically testing how your site behaves in the presence of NoScript, it wouldn't be unreasonable to disable NoScript for web dev work (at least "Disable restrictions for this tab"). You trust the site that you are developing yourself, don't you? :o
99.99% of the sites have Google Analytics, i want to stop tracking me. Never. Anyplace. :)
barbaz wrote: Thu Dec 19, 2024 5:49 pm Would you like this post merged with the other thread? I think it would be fine there, or fine to leave it here as a new thread if you prefer. Up to you :)
Perhaps this thread has enough entity to remain independent, in case other users come with the same problem, don't you think?

Thanks!
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
barbaz
Senior Member
Posts: 11064
Joined: Sat Aug 03, 2013 5:45 pm

Re: Change [Report Only] messages level

Post by barbaz »

BajoFondo wrote: Mon Dec 30, 2024 8:02 am But until NS version 12 they did not appear. Can't do anything?
Previous versions of NoScript were using Manifest V2 extensions APIs. NoScript 12 is using Manifest V3 extensions APIs, which are more limited and as Giorgio said in the other thread it's not possible to keep the previous approach that didn't result in the messages.
BajoFondo wrote: Mon Dec 30, 2024 8:02 am 99.99% of the sites have Google Analytics, i want to stop tracking me. Never. Anyplace. :)
The recommended solution is to have your sites respond to Global Privacy Control (and possibly also Do-Not-Track) and do not try to load Google Analytics or any other tracking if any of these signals are explicitly set to the "opt out" state.

If you are developing sites for someone else who will not allow you to respect user choice signals (boo!), note that NoScript is not the right tool for your case. NoScript is a security tool, not an anti-tracking tool. You might consider using a broader spectrum blocker such as uBlock Origin or using a dedicated tracker blocker.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
Post Reply