You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i created the following xpath to compare the positions of the previous "sponsored" span and the previous "separator" div in order to determine which "post content" divs to block:
//div[count(./preceding-sibling::div[@class='header' and .//span[.='sponsored']][1]/preceding-sibling::*) > count(./preceding-sibling::div[@class='separator'][1]/preceding-sibling::*)]
this works in ublock origin, but not in adguard
Issue Details
AdGuard version: 4.0.181
Browser and version: chrome 103.0.5060.66 and safari (ios 15.1.1)
Operating system and version: windows 10 and ios 15.1.1
Filters you use in AdGuard:*##:xpath(//div[count(./preceding-sibling::div[@class='header' and .//span[.='sponsored']][1]/preceding-sibling::*) > count(./preceding-sibling::div[@class='separator'][1]/preceding-sibling::*)])
Stealth Mode settings: n/a
Other browser extensions: ublock origin (to compare the behavior, disabled while testing adguard)
Expected Behavior
elements blocked in both ublock and adguard
Actual Behavior
elements only blocked in ublock
Screenshots
ublock origin
adguard
The text was updated successfully, but these errors were encountered:
@DetachHead commented on Sun Jul 03 2022
given the following html:
i created the following xpath to compare the positions of the previous "sponsored"
span
and the previous "separator"div
in order to determine which "post content"div
s to block:this works in ublock origin, but not in adguard
Issue Details
*##:xpath(//div[count(./preceding-sibling::div[@class='header' and .//span[.='sponsored']][1]/preceding-sibling::*) > count(./preceding-sibling::div[@class='separator'][1]/preceding-sibling::*)])
Expected Behavior
elements blocked in both ublock and adguard
Actual Behavior
elements only blocked in ublock
Screenshots
ublock origin
adguard
The text was updated successfully, but these errors were encountered: