-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Support for custom filter lists in Shields #8107
Support for custom filter lists in Shields #8107
Comments
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 Used on https://www.filterlists.com/ and on my own site https://secure.fanboy.co.nz/ 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! |
I think the next thing would be the ability to disable/enable some of the default filter lists as well 👍 |
@intrnl if you don't mind sharing, it'd be great to hear your use-case (although, probably in a separate issue). If there's something in our default lists causing breakage then we'd like to get the lists fixed upstream as much as possible. |
This feature is still not available? |
Verified
|
Brave | 1.31.77 Chromium: 94.0.4606.71 (Official Build) beta (64-bit) |
---|---|
Revision | 1d32b169326531e600d836bd395efc1b53d0f6ef-refs/branch-heads/4606@{#1256} |
OS | Linux |
Steps:
- Visited
brave://adblock
- Verified that a "Subscribe to filter lists" section exists between the "Additional Filters" and "Custom Filters" sections, including an "Add filter list via URL" button.
- Clicked on the button to create a new subscription. A textbox appeared, along with a disabled "Submit" button and a "Cancel" button.
- Confirmed the "Submit" button remains disabled as long as the text box does not include a valid URL. Pressing enter from the textbox also has no effect whenever the button is disabled.
- Entered
http://failed.url
and confirmed it hasUpdate Now
andUnsubscribe
buttons. PressingUpdate Now
yields aDownload failure
error message, with a timestamp on hover.
example | example |
---|---|
- Entered
https://austinhuang.me/0131-block-list/list.txt
and confirmed it hasUpdate now
,View source
, andUnsubscribe
buttons. PressingUpdate Now
updated the list with a new timestamp.View source
opens the filter-list source code in a new tab. And pressingUnsubscribe
removes the filter URL from the list. - Confirmed the information in the table remained consistent across different
brave://adblock
tab instances, and also across browser restarts. - Confirmed I'm unable to add duplicate filter-list URL entries (the
Submit
button is disabled).
- visited
https://example.com
after subscribing to https://antonok.com/tmp/list.txt, and confirmedhttps://example.com
is mostly red now, changed by the filter list. Uncheckedhttps://antonok.com/tmp/list.txt
, reloaded, and confirmed thathttp://example.com
was no longer red.
example | example | example |
---|---|---|
Verified timestamps were accurate after modifying them via ~/Users/{user-dir}/Library/Application\ Support/Brave Software/Brave-Browser-Beta/Local State
:
example | example | example | example |
---|---|---|---|
Verification passed on
Brave | 1.31.66 Chromium: 94.0.4606.61 (Official Build) beta (64-bit)
-- | --
Revision | 418b78f5838ed0b1c69bb4e51ea0252171854915-refs/branch-heads/4606@{#1204}
OS | Windows 10 Version 21H1 (Build 19043.1237)
Steps:
-
Visited
brave://adblock
-
Verified that a "Subscribe to filter lists" section exists between the "Additional Filters" and "Custom Filters" sections, including an "Add filter list via URL" button.
-
Clicked on the button to create a new subscription. A textbox appeared, along with a disabled "Submit" button and a "Cancel" button.
-
Confirmed the "Submit" button remains disabled as long as the text box does not include a valid URL. Pressing enter from the textbox also has no effect whenever the button is disabled.
-
Entered
http://failed.url
and confirmed it hasUpdate Now
andUnsubscribe
buttons. PressingUpdate Now
yields aDownload failure
error message, with a timestamp on hover.
Before update now |
After update now |
---|---|
- Entered
https://austinhuang.me/0131-block-list/list.txt
and confirmed it hasUpdate now
,View source
, andUnsubscribe
buttons. PressingUpdate Now
updated the list with a new timestamp.View source
opens the filter-list source code in a new tab. And pressingUnsubscribe
removes the filter URL from the list.
example | example | example |
---|---|---|
-
Confirmed the information in the table remained consistent across different
brave://adblock
tab instances, and also across browser restarts. -
Confirmed I'm unable to add duplicate filter-list URL entries (the
Submit
button is disabled)
-
visited
https://example.com
after subscribing to https://antonok.com/tmp/list.txt, and confirmedhttps://example.com
is mostly red now, changed by the filter list. Uncheckedhttps://antonok.com/tmp/list.txt
, reloaded, and confirmed thathttp://example.com
was no longer red.
example | example | example |
---|---|---|
@antonok-edm I verified this issue because the rest worked, but I was unable to get two things working at the time:
Can you take a look and clarify if I've done something -- or haven't -- to make those two not reproducible? Thanks! Local State's timestamps, after auto-updating around 4:46-4:47pm PDT:
|
|
New question: example.com has your stylesheet rules applied to it now, even though I've terminated my server and the fetch for |
@stephendonner correct, the last successful download should be cached and used even if more recent downloads are unsuccessful (you should still be able to see that source using the |
does custom lists automatically update? |
@Tortino the default is weekly unless you manually update |
thank you for the info. |
Yes; that would be the "non-default update intervals" mentioned in #8107 (comment) |
Ideally adhering to |
@antonok-edm When I add/update any valid URL to filter list, I get some |
@GeetaSarvadnya to be honest, I'm not sure what timezone that's supposed to be - I would have assumed UTC? At any rate, it's the default serialization for the I think it can be revisited when the rest of the brave://adblock UI gets redesigned. I'd consider this a UI/UX concern, of which the page doesn't have much of to begin with 😂 |
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
Insert the following designs below “Additional Filters” and above “Custom Filters”:
After the user clicks on "Add filter list via URL", a form field appears with "Submit" and "Cancel":
Built-in error validation for the field specifies entry must start with
https://
Submitting the filter list URL will add the filter list to a table with a toggle to enable/disable and available actions:
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:Assets
Figma: https://www.figma.com/file/tLXWGCpNoiJxDZDdpfordj/Desktop-Settings?node-id=49%3A2359
The text was updated successfully, but these errors were encountered: