Scriptlets icon indicating copy to clipboard operation
Scriptlets copied to clipboard

Fix 'prevent-addEventListener' — scriptlet does not work on iOS

Open Alex-302 opened this issue 2 years ago • 1 comments

Related issue: https://github.com/AdguardTeam/AdguardFilters/issues/168824

iOS 17.1, AdGuard for iOS 4.5.2 (1010)

Rules

bw-bank.de#$#.if6_eprivacy { display: none !important; }
bw-bank.de#%#//scriptlet('prevent-addEventListener', 'scroll', 'jQuery.event.dispatch.apply(elem,arguments):undefined')

Disable all other filters before test.

Expected result

Scrolling is not blocked.

Actual

Scrolling is blocked. prevent-addEventListener rule does nothing - when you scroll down, a script returns back to top of the page.

Alex-302 avatar Dec 19 '23 17:12 Alex-302

bw-bank.de#%#//scriptlet('trusted-click-element', 'a[title="Ablehnen"]') also does not work. With 50 ms delay it works: bw-bank.de#%#//scriptlet('trusted-click-element', 'a[title="Ablehnen"]', '', '50')

Alex-302 avatar Dec 19 '23 17:12 Alex-302