AdguardTeam / Scriptlets

AdGuard scriptlets library
GNU General Public License v3.0
138 stars 27 forks source link

`prevent-addEventListener` does not work on iOS #390

Open Alex-302 opened 7 months ago

Alex-302 commented 7 months ago

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 commented 7 months ago

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')