From 9b5db2b2f039333f28d8d2d2fe74a587959643a5 Mon Sep 17 00:00:00 2001 From: gwarser Date: Fri, 3 May 2019 19:08:47 +0200 Subject: [PATCH] List formatting in watch-attrs(arg) --- Procedural-cosmetic-filters.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Procedural-cosmetic-filters.md b/Procedural-cosmetic-filters.md index c9e055b..fb8fc44 100644 --- a/Procedural-cosmetic-filters.md +++ b/Procedural-cosmetic-filters.md @@ -110,6 +110,9 @@ Experimental. - Chainable: Yes. - _subject_: Can be a plain CSS selector, or a procedural cosmetic filter. - _arg_: comma-separate list of attribute names. No argument means watch changes of any one attribute. +- Examples: + - `www.vivrehome.pl##.js-popup-register:not([style]):watch-attrs(style):has(.js-title-default.is-hidden:watch-attrs(class))` blocks the "Register" overlay when first visiting the site, but yet allow the "Register" overlay when clicking "rejestracja". + - `ameshkov.github.io###testdiv:watch-attrs(id):has(p)` demo, detects `id` changes. Introduced in uBO [1.17.5rc3](https://github.com/gorhill/uBlock/commit/8a88e9d93174badd6855c0e782737158c9ccd6f8) @@ -117,11 +120,6 @@ Solves [uBlockOrigin/uBlock-issues#341 (comment)](https://github.com/uBlockOrigi By default hiding by procedural filters is reevaluated only when nodes in sub-tree are added or removed - uBO does not watch for attribute changes for performance reasons. This filter instructs uBO procedural filtering engine to watch for changes in specific attributes. -Example: - -- `www.vivrehome.pl##.js-popup-register:not([style]):watch-attrs(style):has(.js-title-default.is-hidden:watch-attrs(class))` blocks the "Register" overlay when first visiting the site, but yet allow the "Register" overlay when clicking "rejestracja". -- `ameshkov.github.io###testdiv:watch-attrs(id):has(p)` demo, detects `id` changes. - ### `subject:xpath(arg)`