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

Allow a shield toggle to enable/disable cosmetic filtering #8702

Open
ryanbr opened this issue Mar 16, 2020 · 5 comments
Open

Allow a shield toggle to enable/disable cosmetic filtering #8702

ryanbr opened this issue Mar 16, 2020 · 5 comments

Comments

@ryanbr
Copy link
Collaborator

@ryanbr ryanbr commented Mar 16, 2020

Description

Having another shield option to allow us to disable/enable cosmetic filtering on a per site basis.

Was discussed here; #8688

To be used to help debug webcompat issues (by us and by the user), an easy option to disable cosmetic filter to help where we need to. Cosmetic filter default should stay enabled by default.

Miscellaneous Information:

uBO has a similar filter option, https://github.com/gorhill/uBlock/wiki/Per-site-switches#no-cosmetic-filtering

If a cosmetic filtering shield option isn't viable, making a custom option in chrome://settings/content/siteDetails might be a middle ground (just an idea).

@tomlowenthal
Copy link
Member

@tomlowenthal tomlowenthal commented Mar 17, 2020

@ryanbr How would you describe the functionality of the cosmetic filter from the perspective of the person using the browser?

@rebron rebron added the design label Mar 17, 2020
@rebron
Copy link
Collaborator

@rebron rebron commented Mar 17, 2020

@ryanbr
Copy link
Collaborator Author

@ryanbr ryanbr commented Mar 17, 2020

Using cosmetic filtering, allowing the user to collapse elements on site, removing white space where needed. So cleaning up a site and making it more readable.

The potential downsides:

  1. Unintentional: Occasionally this can cause issues where whitespace collapsing may inadvertently remove content (that shouldn't be blocked). This is where a site would roll out a div element, without relising it's causing issues with Adblock users. Or we have a bad site-specific cosmetic filter being used in Easylist that should be removed.

  2. Intentional: A site intentionally uses a cosmetic filter to check for Adblock users, to either limit or disable site functionality based on a simple cosmetic check.

We can get around cosmetic filtering in Easylist issues when we're notified. But for the end user having a quick option to just disable this while still keeping the rest of the Shield blocks on site tracking (or until a fix is deployed) would be great.

@antonok-edm
Copy link
Collaborator

@antonok-edm antonok-edm commented Mar 18, 2020

There is already a toggle in brave://flags, called #brave-adblock-cosmetic-filtering. However, it can't be changed per-website and changing it and requires a browser restart.

I think it's important to get a consensus from the product team on where this toggle should go and how it should work - a Shields panel option has already been proposed and implemented for the original cosmetic filtering PR but was ultimately decided against and removed.

@pes10k
Copy link
Contributor

@pes10k pes10k commented Mar 18, 2020

@antonok-edm that initial decision (no shields toggle) was because, in the initial proposal, the original options were either "default on, with 1p vs 3p distinctions" (i.e. what we shipped) or "default off, with shields toggle".

But now that we're default on, I think a shields toggle would be fine with

  • off
  • 3p (default)
  • all

options.

@rebron rebron added this to In progress in Front End Mar 18, 2020
@rebron rebron added the priority/P2 label Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Front End
  
In progress
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.