Opened 5 years ago

Last modified 9 months ago

#2360 closed change

[meta] Add ability to hide elements by their child elements — at Version 3

Reported by: Lain_13 Assignee:
Priority: P2 Milestone:
Module: Core Keywords: meta, filtersyntax, closed-in-favor-of-gitlab
Cc: mapx, greiner, sebastian, fhd, arthur Blocked By: #3142, #3143
Blocking: Platform: Unknown
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description (last modified by greiner)


Sometimes it is not possible to properly hide an ad unit because they are (almost) indistinguishable from similar organic content on the page. For example, it could be a paid post with advertisement link in the blog or ads in the search results (like ads on Yandex which were impossible to hide with adblock for a while and recently became selectable again simply by mistake). The general problem is the same since there is no way to target that block. It's only possible to hide something inside of it and often that is far from being enough to even get rid of the advertisement.

There are two proposals and one doesn't necessarily exclude another so both could be implemented.

  1. Add support for XPath (see #3142)
  2. Add support for the proposed CSS4 pseudo-selector :has() (see #3143)

Change History (3)

comment:1 Changed 5 years ago by mapx

  • Cc mapx greiner added

comment:2 Changed 5 years ago by sebastian

  • Cc sebastian added

comment:3 Changed 5 years ago by greiner

  • Blocked By 3142, 3143 added
  • Component changed from Unknown to Core
  • Description modified (diff)
  • Keywords meta filtersyntax added
  • Summary changed from Support XPath or at least :has() pseudo-selector to hide parent by it's child to [meta] Add ability to hide elements by their child elements
  • Tester set to Unknown

Split this ticket up into one for XPath support (#3142) and one for the CSS4 polyfill (#3143).

Note: See TracTickets for help on using tickets.