We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Related to - #106 Another issue when it could be useful - AdguardTeam/AdguardFilters#146786 AdguardTeam/AdguardFilters#146872
Test page - https://jsfiddle.net/yehz25L4/
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <div id='test'> Advertisement <p> Test </p> <p> 1234 </p> <p> qwerty </p> </div> </body> </html>
Rule which should remove text Advertisement:
Advertisement
fiddle.jshell.net#$?#:xpath(//div[contains(@id,"test")]/text()[contains(.,'Advertisement')]) { remove: true; }
ExtendedCss.query which should match element:
ExtendedCss.query
ExtendedCss.query(`:xpath(//div[contains(@id,"test")]/text()[contains(.,'Advertisement')])`)
I might be wrong, but I guess that it doesn't work currently, because isHtmlElement
isHtmlElement
ExtendedCss/src/common/utils/nodes.ts
Lines 87 to 89 in 7d2957f
false
text
The text was updated successfully, but these errors were encountered:
@slavaleleka can we assign it to release v2.1?
Sorry, something went wrong.
yes
Update suplement.txt
5ead548
AdguardTeam/ExtendedCss#165 Konwersja z CSS na JS, by działało w Firefox Mobile z uBlock Origin.
slavaleleka
No branches or pull requests
Related to - #106
Another issue when it could be useful - AdguardTeam/AdguardFilters#146786
AdguardTeam/AdguardFilters#146872
Test page - https://jsfiddle.net/yehz25L4/
Code:
Rule which should remove text
Advertisement
:ExtendedCss.query
which should match element:I might be wrong, but I guess that it doesn't work currently, because
isHtmlElement
ExtendedCss/src/common/utils/nodes.ts
Lines 87 to 89 in 7d2957f
returns
false
fortext
node and probably due to this, element is not matched.The text was updated successfully, but these errors were encountered: