1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-06 02:42:33 +01:00
uBlock/platform/chromium
Raymond Hill 72bb700568
Add procedural cosmetic operators remove() and upward()
***

New procedural cosmetic operator: `:remove()`

Related issue:
- https://github.com/gorhill/uBlock/issues/2252

The purpose is to outright remove elements from the
DOM tree. Since `:remove()` is an "action" operator,
it must only be used as a trailing operator (just
like the `:style()` operator).

AdGuard's cosmetic filter syntax `{ remove: true; }`
will be converted to uBO's `:remove()` operator
internally.

***

New procedural cosmetic operator: `:upward(...)`

The purpose is to lookup an ancestor element.

When used with an integer argument, it is synonym of
`:nth-ancestor()`, which will be deprecated and which
will no longer be supported once no longer used in
mainstream filter lists.

Filter lists maintainers must only use `:upward(int)`
instead of `:nth-ancestor(int)` once the new operator
become available in all stable releases of uBO.

`:upward()` can also accept a CSS selector as argument,
in which case the nearest ancestor which matches the
CSS selector will be selected.
2020-03-07 14:25:06 -05:00
..
is-webrtc-supported.html fix warnings in browser console 2017-07-25 11:59:52 -04:00
is-webrtc-supported.js this fixes https://github.com/gorhill/uBlock/issues/533#issuecomment-167931681 2015-12-31 09:24:55 -05:00
managed_storage.json #985: might be the missing trailing # 2015-11-27 14:30:17 -05:00
manifest.json Rephrase author entry in manifest 2020-01-30 12:46:54 -05:00
vapi-background.js Use disable_non_proxied_udp for webRTCIPHandlingPolicy 2020-02-28 14:30:40 -05:00
vapi-client-extra.js Simplify client messaging code 2019-09-19 08:31:38 -04:00
vapi-client.js Use self when testing for vAPI presence 2019-09-30 07:50:35 -04:00
vapi-common.js Catch possible exceptions when accessing window.localStorage 2020-03-03 11:31:14 -05:00
vapi-usercss.js Add ability to report exception cosmetic filters in the logger 2019-05-16 13:44:49 -04:00
vapi-usercss.pseudo.js Add procedural cosmetic operators remove() and upward() 2020-03-07 14:25:06 -05:00
vapi-usercss.real.js Work toward modernizing code base: promisification 2019-09-17 15:15:01 -04:00
vapi-webrequest.js Add support for ping static filter option 2019-09-22 09:11:55 -04:00
vapi.js Fix regression in cosmetic filtering 2019-09-30 10:40:56 -04:00
webext.js Prevent spurious error messages to browser console 2019-09-23 09:29:17 -04:00