A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/gorhill/uBlock/issues/2519 below:

Autogenerated filter breaks a web page · Issue #2519 · gorhill/uBlock · GitHub

Describe the issue

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.

One or more specific URLs where the issue occurs Screenshot in which the issue can be seen

Steps for anyone to reproduce the issue
  1. Right-click the element.
  2. Click Block element.
Your settings Your filter lists

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