-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uBlock Origin doesn’t honor noscript tags when blocking JS #308
Comments
There is no good solution for this. uBlock does not disable javascript in the browser, it prevents it from running using a So there is no good solution. Maybe file an issue with the browser devs to ask them if the |
So those annoying |
Just for the record, e.g. NoScript honours noscript tags. NoScript also has options whether to allow META redirections inside them or to hide them completely. |
Can we maybe use this technique?: http://kb.mozillazine.org/Allowing_only_certain_sites_to_use_JavaScript That is, if all javascript is disabled for a site, can we set This probably has to be carefully thought of as uMatrix can both function as a blacklist and as a whitelist, but still, even supporting the simplest most popular scenario would be awesome. |
I just ran into this when trying to ensure my site was accessible to users who don't have javascript. Do we know how NoScript manages to deal with the |
Gecko bug https://bugzilla.mozilla.org/show_bug.cgi?id=1392090 will make this work for "script-src 'none'" once fixed. For cases when some but not all scripts are blocked, the desired behavior of noscript tags is ... unclear at best. |
Ok thanks. Well, a master javascript switch was an alternative solution, however it could not be implemented in Firefox due to Between both solutions, I like the |
A new per-site switch has been added to wholly disable/enable javascript. |
…es#155 <gorhill#95>: a new per-site switch has been added, no-scripting, which purpose is to wholly disable/enable javascript for a given site. This new switch has precedence over all other ways javascript can be disabled, including precedence over dynamic filtering rules. The popup panel will report the number of script resources which have been seen by uBO for the current page. There is a minor inaccuracy to be fixed regarding the count, and which fix requires to extend request journaling. <gorhill/uBlock#308>: the `noscript` tags will now be respected when the new no-scripting switch is in effect on a given site. A default setting has been added to the _Settings_ pane to disable/enable globally the new no-script switch, such that one can work in default-deny mode regarding javascript execution. <uBlockOrigin/uBlock-issues#155>: a new hidden setting, `requestJournalProcessPeriod`, has been added to allow controlling the delay before uBO internally process it's network request journal queue. Default to 1000 (milliseconds). Co-authored-by: gorhill <585534+gorhill@users.noreply.github.com>
In advanced mode, when blocking some or all of the JS scripts on a page, the noscript tag following the script tag is never used.
Here is a simple testcase for this issue, the page should display either “Using <script/>” when using JS, or “Using <noscript/>” when blocking it, but it currently displays nothing when using uBlock Origin.
http://linkmauve.fr/files/ublock.xhtml
The text was updated successfully, but these errors were encountered: