AdguardTeam / CoreLibs

Core Adguard libraries
https://adguard.com/
Apache License 2.0
40 stars 7 forks source link

Add support for ABP's CSS injection syntax #143 #1927

Open scripthunter7 opened 2 weeks ago

scripthunter7 commented 2 weeks ago

Issue Details

ABP introduced a new syntax for removing elements, which looks like this:

##<css-selector> {remove:true;}
#?#<extended-css-selector> {remove:true;}

Its also can be used as CSS injection:, e.g:

abptestpages.org##.testcase-inline-css-ehe {background-color: #c70d2c;}
abptestpages.org#@#.testcase-inline-css-ehe

Reference: https://github.com/AdguardTeam/AGLint/issues/224

Proposed solution

We should add support as Andrey asked in https://github.com/AdguardTeam/AGLint/issues/224#issuecomment-2471126214

Alternative solution

No response