Skip to content
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

Using |*| to strict block everything no longer works. #687

Closed
8 tasks done
tod222 opened this issue Aug 2, 2019 · 4 comments
Closed
8 tasks done

Using |*| to strict block everything no longer works. #687

tod222 opened this issue Aug 2, 2019 · 4 comments
Labels
wontfix won't be addressed

Comments

@tod222
Copy link

tod222 commented Aug 2, 2019

Prerequisites

  • I verified that this is not a filter issue
  • This is not a support issue or a question
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue
    • Your issue may already be reported.
  • I tried to reproduce the issue when...
    • uBlock Origin is the only extension
    • uBlock Origin with default lists/settings
    • using a new, unmodified browser profile
  • I am running the latest version of uBlock Origin
  • I checked the documentation to understand that the issue I report is not a normal behavior

Description

Using |*| to strict block everything no longer works.

A specific URL where the issue occurs

https://www.google.com/

Steps to Reproduce

  1. Start a new FF profile.
  2. Install uBlock Origin.
  3. Open the uBO dashboard.
  4. Click "I am an advanced user."
  5. Click the "My Filters" tab.
  6. Enter the following wildcard filter: "|*|" (vertical bar, asterisk, vertical bar).
  7. Click the "Apply Changes" button.
  8. Open a new tab.
  9. Enter any URL (e.g., "https://www.google.com/") into the address bar.
  10. Hit "Enter" or click the right arrow in the address bar to navigate to the URL.

Expected behavior:

uBO will block the web page and display the strict blocking warning allowing you to disable strict blocking for the domain temporarily or permanently.

Actual behavior:

The page is displayed without its other assets loading. For www.google.com it means the Google logo is not shown.

Your environment

  • uBlock Origin version: v1.21.2
  • Browser Name and version: Firefox 68.0.1
  • Operating System and version: Ubuntu 18.04.2 LTS

Originally reported to reddit. A commenter there indicates that this issue could be caused by commit 41636c59fb4208544b4bb23a5ac6273399cab625.

@liamengland1
Copy link

|*|$all or |*|$document will do what you want.

@uBlock-user uBlock-user added the bug Something isn't working label Aug 2, 2019
@uBlock-user
Copy link
Contributor

uBlock-user commented Aug 2, 2019

|*| translates to * in uBO, so it's indeed a regression from the aformentioned commit. Probably by-design as per the commit if you need a token, as this is a tokenless filter.

@uBlock-user uBlock-user added something to address something to address and removed bug Something isn't working labels Aug 2, 2019
@gorhill
Copy link
Member

gorhill commented Aug 2, 2019

By design, related commit: gorhill/uBlock@41636c5.

@gorhill gorhill closed this as completed Aug 2, 2019
@gorhill gorhill added wontfix won't be addressed and removed something to address something to address labels Aug 2, 2019
@gorhill
Copy link
Member

gorhill commented Aug 2, 2019

The feedback was https://github.com/orgs/uBlockOrigin/teams/ublock-issues-volunteers/discussions/110:

if we have a filter like (lots of false positive - treated by unbreak list):
://ads.$domain=~ads.ac.uk|~ads.adstream.com.ro|...

I propose not to block the whole domain if:

  • first party and not intended to totally block that domain (filters like ||example.com^ )

Now a site like https://ads.buscaempresas.co will be broken and a badfilter + excluding the domain for that sort of filter is necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix won't be addressed
Projects
None yet
Development

No branches or pull requests

4 participants