Opened 3 years ago

Last modified 14 months ago

#2360 new change

[meta] Add ability to hide elements by their child elements

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

Description (last modified by greiner)

Background

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 (12)

comment:1 Changed 3 years ago by mapx

  • Cc mapx greiner added

comment:2 Changed 3 years ago by sebastian

  • Cc sebastian added

comment:3 Changed 3 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).

comment:4 Changed 2 years ago by fhd

  • Cc fhd added

comment:5 Changed 2 years ago by fhd

  • Blocking 4118 added

comment:6 Changed 2 years ago by fhd

  • Owner set to fhd

I'll look into this, most likely via #3143.

comment:7 Changed 2 years ago by fhd

  • Priority changed from Unknown to P2

comment:8 Changed 2 years ago by Lain_13

Last edited 2 years ago by Lain_13 (previous) (diff)

comment:9 Changed 2 years ago by mapx

well, with the FB battle, many users are waiting for this implementation
https://adblockplus.org/forum/viewtopic.php?f=1&t=48064

comment:10 in reply to: ↑ description Changed 22 months ago by bopoh13

Replying to Lain_13:

I've a dirty patch for this: ​https://greasyfork.org/en/scripts/14720-it-s-not-important

How to use your scripts?
UPD: Sorry, I realized after reading the link the message.

Last edited 22 months ago by bopoh13 (previous) (diff)

comment:11 Changed 19 months ago by arthur

  • Cc arthur added

comment:12 Changed 14 months ago by fhd

  • Owner changed from fhd to hfiguiere
Note: See TracTickets for help on using tickets.