Brave-browser: Support for custom filter lists in Shields

Created on 6 Feb 2020  ·  5Comments  ·  Source: brave/brave-browser

Description

Some popular adblocking extensions help users create filter lists to supplement the default ones. This can for example allow someone to hide parts of a website that are not deemed useful or desirable but that would otherwise be out of scope for EasyList/EasyPrivacy.

This is an advanced use case for sure, and we should focus on shipping the best default-on adblocker, but I thought I'd mention it since it might allow some users to avoid installing an additional extension and have everything they need built-in.

Designs

Add functionality to subscribe to filter lists via URL on brave://adblock

image

Insert the following designs below “Additional Filters” and above “Custom Filters”:

image

After the user clicks on "Add filter list via URL", a form field appears with "Submit" and "Cancel":

image

Built-in error validation for the field specifies entry must start with https://

image

Submitting the filter list URL will add the filter list to a table with a toggle to enable/disable and available actions:

  • Update now
  • View website
  • View source
  • Unsubscribe

image

If the user enters a filter list that is invalid or unavailable, the table entry shows the filter as Download failure with no toggle available:

image

Assets

Figma: https://www.figma.com/file/tLXWGCpNoiJxDZDdpfordj/Desktop-Settings?node-id=49%3A2359

featurshields featurshieldadblock privacy-pod

Most helpful comment

Another way could be added, via ahref abp:subscribe? to streamline custom filter additions (supported by ABP and uBO)

Used on https://www.filterlists.com/ and on my own site https://secure.fanboy.co.nz/
Sample:
abp:subscribe?location=https://secure.fanboy.co.nz/fanboy-problematic-sites.txt&title=Fanboy Problematic Sites

If this suggestion is out of the scope of this, I can create a separate report.

All 5 comments

cc: @pes10k @ryanbr Is this a dupe?

No, this is different. Currently Brave users can add additional rules in the text box on brave://adblock (soon to be brave://shields/filter-rules I think). Whats being asked for here, I believe, is the ability to subscribe to new lists, by URL.

Another way could be added, via ahref abp:subscribe? to streamline custom filter additions (supported by ABP and uBO)

Used on https://www.filterlists.com/ and on my own site https://secure.fanboy.co.nz/
Sample:
abp:subscribe?location=https://secure.fanboy.co.nz/fanboy-problematic-sites.txt&title=Fanboy Problematic Sites

If this suggestion is out of the scope of this, I can create a separate report.

I think that would be better to open as an issue in brave-core, and note in it that it would need to come after this issue is closed

Designs added!

Was this page helpful?
0 / 5 - 0 ratings