See https://github.com/brave/brave-core/pull/4700
Custom adblock rules doesn't work
brave://adblock
Custom adblock rule doesn't work. Element is still loaded after adding the rule
Should block elements based on custom rule
Easy
Brave | 0.64.72 Chromium: 74.0.3729.131聽(Official Build)聽beta(64-bit)
-- | --
Revision | 518a41c1fa7ce1c8bb5e22346e82e42b4d76a96f-refs/branch-heads/3729@{#954}
OS | Linux
Can you reproduce this issue with the nightly channel?
Yes
Does the issue resolve itself when disabling Brave Shields?
N/A
Context menu CSS blocker works fine but isn't always blocking the right element.
This didnt work on muon as well https://github.com/brave/browser-laptop/issues/12308
cc: @emerick
cc: @Snuupy can you take a look?
+1 also encountering this
@srirambv Can you provide one or more sample rules that don't work and/or screenshots?
@emerick Here's the screenshot on latest nightly. I've added the custom adblock rule ##.header-ad using element class name. Even after adding the rule and clean reload of the page/relaunch of browser the ad doesn't get blocked.


Brave | 0.67.62 Chromium: 75.0.3770.38聽(Official Build)nightly聽(64-bit)
-- | --
Revision | 3860105745f2b12537da9e9f048f14c3f52ba970-refs/branch-heads/3770@{#618}
OS | Linux
cc: @snyderp
I think maybe the title should say custom adblock filters should allow you to add cosmetic filters?
So the way I understand it, there's currently NO way of blocking any custom element using UI nor the custom filters in brave://adblock right?
If you need another example, just try blocking ANYTHING on reddit. It just don't work at all.
I tried:
reddit.com##.promotedlink
reddit.com#?#div.promotedlink
reddit.com#?#.size-compact.Post:-abp-has([class*=promoted])
Version 0.64.77 Chromium: 74.0.3729.169 (Official Build) (64-bit) on Linux.
With JavaScript turned OFF by default (Reddit IS white-listed)
@tbergeron that is correct - there is currently no way to block UI elements
@Snuupy is working through several issues related to UI element blocking which are tracked here:
https://github.com/brave/brave-browser/projects/21
cc: @ryanbr
This is not really in @ryanbr's purview at the moment, since we don't have the ability to apply cosmetic filters at all, and @ryanbr is working on improving issues with existing adblocking capabilities.
Hopefully we'll have this worked out over the summer though, with @Snuupy 's work or someone else who will be joining us for the summer
I am still able to repro the issue. I cannot block elements through brave://adblock
cc @srirambv can you quickly recheck this one?
Steps used:
http://reddit.com/brave://adblock##.promotedlink or reddit.com##.promotedlinkNote: Blocking through Block element by selector works as expected.
Brave | 0.69.129 Chromium: 77.0.3865.90聽(Official Build)聽(64-bit)
-- | --
Revision | 58c425ba843df2918d9d4b409331972646c393dd-refs/branch-heads/3865@{#830}
OS | Ubuntu 18.04 LTS
@btlechowski verified custom rules are not blocking elements. Verified on
Brave | 0.69.130 Chromium: 77.0.3865.90 (Official Build) (64-bit)
-- | --
Revision | 58c425ba843df2918d9d4b409331972646c393dd-refs/branch-heads/3865@{#830}
OS | Linux
I don't think this issue was actually addressed with https://github.com/brave/brave-core/pull/3121
This issue is covering the brave://adblock page and being able to add cosmetic filters there; the PR was updating functionality in the right click menu
Re-opening and removing milestone
After scratching my head over why my filters weren't working, I finally found this issue. It looks like the project this issue was added to (https://github.com/brave/brave-browser/projects/21) has been closed. Does this mean that there are no plans to make the box in brave://adblock do anything? If so, shouldn't it be removed so others can avoid the confusion I went through? And does this mean that the only way to add custom filters is by installing a 3rd party extension?
@yousefamar currently that field works for network rules, not cosmetic rules. However, once this lands you can enable cosmetic rules behind a flag too
https://github.com/brave/brave-core/pull/3303
After that gets tested we will start exploring ways we can enable cosmetic blocking by default
Updated to 1.7 because https://github.com/brave/brave-core/pull/4772 hasn't been merged (yet). Updating the milestone back to 1.6 is in the post-merge checklist for uplifts
Verification passed on
Brave | 1.7.82 Chromium: 80.0.3987.162聽(Official Build)聽dev聽(64-bit)
-- | --
Revision | f2c5dd6138153bb0658091205bd1a1717f16081a-refs/branch-heads/3987@{#1034}
OS | Windows聽10 OS Version 1803 (Build 17134.523)
Verified passed with
Brave | 1.7.86 Chromium: 80.0.3987.163聽(Official Build)聽(64-bit)
-- | --
Revision | e7fbe071abe9328cdce4ffedac9822435fbd3656-refs/branch-heads/3987@{#1037}
OS | macOS Version 10.14.6 (Build 18G3020)
Verified passed with
Brave | 1.7.86 Chromium: 80.0.3987.163聽(Official Build)聽(64-bit)
-- | --
Revision | e7fbe071abe9328cdce4ffedac9822435fbd3656-refs/branch-heads/3987@{#1037}
OS | Ubuntu 18.04 LTS
Most helpful comment
I don't think this issue was actually addressed with https://github.com/brave/brave-core/pull/3121
This issue is covering the brave://adblock page and being able to add cosmetic filters there; the PR was updating functionality in the right click menu
Re-opening and removing milestone