-
Notifications
You must be signed in to change notification settings - Fork 24
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
"$all" and "$doc" currently don't seem to be supported #229
Comments
Well, I found it myself:
|
Here is the test version - uBlock0_1.16.4.20b1.firefox-legacy.xpi.zip (rename zip to xpi). What is the best way to test |
I can confirm that I simply use |
Thanks, I will put this beta in my main browser and watch how it behaves. @THEtomaso, you may be interested in this as well. |
Thanks, JustOff. -- @DandelionSprout: ..and then try to download one of the worst spyware packages in existence, from here: |
Having only now noticed that edit, I can confirm that |
Related discussion: - https://www.reddit.com/r/uBlockOrigin/comments/bqnsoa/ The `all` option is equivalent to specifying all network-based types + `popup`, `document`, `inline-font`, `inline-script`. Example from discussion: ||bet365.com^$all Above will block all network requests, block all popups, prevent inline fonts/scripts from `bet365.com`. EasyList- compatible syntax does not allow to accomplish that semantic when using only `||bet365.com^`. If using specific negated type options along with `all`, the order in which the options appear is important. In such case `all` should always be first, followed by the negated type option(s).
Issue:While troubleshooting this problem: https://github.com/wolfbeast/lunarblocklist/issues/6/ I think I might have discovered a bug related to uBO Legacy's How to reproduce (using uBO Legacy in Pale Moon):1 - Add this blocking rule to your filters (found in 'Lunar Blocklist by Moonchild'): 2 - Open this page, and observe as all article images are blocked: 3 - Add one of the following whitelisting rules: 4 - Reload the page, and observe as all article images are now shown. 5 - Now, right-click on one of the images, and select "View Image".. 6 - Add this whitelisting rule: 7 - Right-click on one of the images, and select "View Image" again.. |
The above problem also occurs with uBO-legacy 1.16.4.19, i.e. before PS: I would not advise you to use Lunar Blocklist with uBlock, just saying. |
OK, good thing that we can rule that out then. --
Why not? -- btw; when testing this particular issue in other browsers, I discovered yet again how flawed and potentially unsafe Chromium is. |
|
Yeah, those quotation marks should indeed be included. |
For 301 this is in specification. |
Of course, Pale Moon also redirects from |
@gwarser: |
Prerequisites
Description
Currently, neither
$all
or$doc
seem to be supported by Firefox Legacy, as any strict blocking prompts don't show up.Fixing
$doc
would be as simple as adding'doc': 'main_frame'
touBlock-for-firefox-legacy/src/js/static-net-filtering.js
Lines 1379 to 1409 in 755a8e0
$all
would possibly have to be converted into two different entries at once, one for nothing at all and one for$popup
. Arguably even a third one for$document
would have to be added, leading to complexity that makes me wonder if it's more ideal to just add native support for$all
instead.A specific URL where the issue occurs
Just about anywhere on the internet, but let's assume
https://www.nrk.no/
as a very, very safe test site for this.Steps to Reproduce
||nrk.no^$all
and||nrk.no^$doc
to My Filters.https://www.nrk.no/
.Expected behavior:
The strict blocking page shows up.
Actual behavior:
The page is loaded normally.
Your environment
The text was updated successfully, but these errors were encountered: