mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-02 00:42:45 +01:00
Revert removal of matches-css-related filters
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2292
Related commit:
- a71b71e4c8
This commit is contained in:
parent
e29e760b43
commit
9a31ac8076
@ -95,6 +95,19 @@ class PSelectorMatchesCSSTask extends PSelectorTask {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
class PSelectorMatchesCSSAfterTask extends PSelectorMatchesCSSTask {
|
||||||
|
constructor(task) {
|
||||||
|
super(task);
|
||||||
|
this.pseudo = '::after';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class PSelectorMatchesCSSBeforeTask extends PSelectorMatchesCSSTask {
|
||||||
|
constructor(task) {
|
||||||
|
super(task);
|
||||||
|
this.pseudo = '::before';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class PSelectorMatchesMediaTask extends PSelectorTask {
|
class PSelectorMatchesMediaTask extends PSelectorTask {
|
||||||
constructor(task) {
|
constructor(task) {
|
||||||
@ -345,6 +358,8 @@ class PSelector {
|
|||||||
[ 'if', PSelectorIfTask ],
|
[ 'if', PSelectorIfTask ],
|
||||||
[ 'if-not', PSelectorIfNotTask ],
|
[ 'if-not', PSelectorIfNotTask ],
|
||||||
[ 'matches-css', PSelectorMatchesCSSTask ],
|
[ 'matches-css', PSelectorMatchesCSSTask ],
|
||||||
|
[ 'matches-css-after', PSelectorMatchesCSSAfterTask ],
|
||||||
|
[ 'matches-css-before', PSelectorMatchesCSSBeforeTask ],
|
||||||
[ 'matches-media', PSelectorMatchesMediaTask ],
|
[ 'matches-media', PSelectorMatchesMediaTask ],
|
||||||
[ 'matches-path', PSelectorMatchesPathTask ],
|
[ 'matches-path', PSelectorMatchesPathTask ],
|
||||||
[ 'min-text-length', PSelectorMinTextLengthTask ],
|
[ 'min-text-length', PSelectorMinTextLengthTask ],
|
||||||
|
Loading…
Reference in New Issue
Block a user