I'm not sure if it's a feature, but it's most likely a bug, I think. So, I was trying to block an element that included ads, but it was blocking other elements on the page as well. I started by right-clicking the element and clicking Block element. Then I tried to inspect the web page (which, BTW, is very poorly designed) and it seemed that there was nothing wrong with the filter that uBlock Origin has generated, but it was clearly blocking other portions of the page as well. After about 5 minutes of tinkering, suddenly, it hit me. The autogenerated filter's CSS selector doesn't start with body >
, so it matches multiple elements in the DOM tree.
body > table > tbody > tr > td:nth-child(2)
/html/body/table/tbody/tr/td[2]
##table > tbody > tr > td:nth-of-type(2)
##body > table > tbody > tr > td:nth-of-type(2)
Irrelevant.
Your custom filters (if any)Irrelevant.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4