-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[Follow up to #33241] Sometimes blocked element reappeared again after refreshing the page #43040
Comments
This is wrong. It is actually doing what it is suppose to be doing. xpath is a Procedural though, and the nature of Procedurals is that they are selectors made out of JS, which means, they are slower to apply than normal native cosmetics. While xpath on its own is really powerful, it is not native to the adblocker, so it needs to be a slow procedural, unless Google adds xpath as a native selector, so it is an expected behavior and this is the exact reason why Procedurals shouldn't be used and they should only be the last resort if there is no other way to catch an element, they are not native and therefore slow, and cause elements to show and hide on refresh. I have like a whole issue reporting every single issue with Procedurals compared to uBlock and xpath's only issue is that it makes some websites like quora really slow, but it is still slow by design. So the main problem here, is that the Element Picker (I refuse to call it Block Elements still after 2 years #27313) on Android was decided to use the For example, Desktop Element Picker and uBlock would pick At the moment, not even even desktop's Brave Element picker is going to pick that ID, because since this update with the new Element Picker, they are adding weird rules when you use the slider, it will either pick only Of course, I am the ones that think people shouldn't use Element Picker anyway, Element Pickers are not good, while if you use Devtools for filters, you can use so many selectors (like Attributes) with pseudo-classes like So anyway, in resume, the issue is not the adblocker or the rule itself, but how Element Picker works, so the title should be something like: "Brave Element Picker shouldn't use xpath, a slow procedural, for any cosmetic, because it is not recommended, it should use only native selectors like other Element Pickers (Included Brave's desktop)". Because xpath is working as expected. I even found another issue against using xpath this way, I even got |
The above requires |
Verified on
STEPS:
ACTUAL RESULTS:
2025-01-24_16-48-16.mp4 |
Description
Follow-up to #33241.
Steps to reproduce
#block-element-feature
and relaunch Bravehttps://www.thebarreltap.com/
and wait for theage restriction
pop-upBrave Shields
> Advances controlsBlock Element
Actual result
Sometimes blocked elements reappeared again after refreshing the page.
2024-12-23_11-06-38.mp4
Expected result
If the distracting element is blocked, it must not reappear after refreshing the page.
Reproduces how often
Intermittent issue
Brave version
Brave build: 1.75.115
Chromium: 132.0.6834.57 (Official Build) canary (64-bit)
Device
Channel information
Reproducibility
Miscellaneous information
No response
The text was updated successfully, but these errors were encountered: