-
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
Unexpected result when blocking Javascript #1642
Comments
In uBO, javascript is blocked using resource blocking and/or CSP directives. |
@gorhill Sorry for assuming it was a bug, I don't know much about this subject. Of pure interest I have tried to research what "resource blocking" and "CSP directives" mean. I didn't understand too much but while I did a search query on Google, I could see in the Firefox console that scripts were blocked by CSP as you said:
If you don't mind I have two questions:
Thanks. |
See #308. |
@gorhill What if a button was available in the popup UI for advanced users, that would enable/disable Javascript by toggling One could then use the Web with Javascript disabled and This would not require changing how uBO works, only a button that would enable/disable Javascript in the browsers. Of course, one could just do this directly in the browser, but it would be much less awkward with a button in the UI. |
I want uBlock Origin to block all Javascript until I allow it on a per-site basis. To accomplish this I have enabled medium mode and added these additional rules in My Rules pane:
* * 1p-script block
* * inline-script block
By looking in the Dynamic filtering pane I can confirm that all rules are enabled.
I would now expect all Javascript to be blocked, but by doing a Google search I see a different result than when disabling Javascript directly in Firefox:
Firefox with Javascript disabled in
about:config
:Firefox with Javascript enabled in
about:config
and uBlock Origin installed:In Firefox with Javascript enabled and uBlock Origin configured as above, Google is almost identical to when Javascript is fully enabled, the only difference being a missing image and all drop down menus not working.
I have been looking in Logger while searching and see inline-script gets blocked for every query.
With uBlock Origin configured as above, one would expect an identical output as when Javascript is disabled directly in Firefox.
Browser: Firefox 46.0.1
uBlock Origin version: 1.7.0
The text was updated successfully, but these errors were encountered: