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
Steps to reproduce:
example.org#%#//scriptlet('prevent-fetch', 'googlesyndication', '', 'opaque')
2, Go to - https://example.org/ 3. In browser console run:
(async () => { try { const response = await fetch('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js', { mode: 'no-cors' }); if (response.ok) { alert('adblock'); } } catch (error) { alert('adblock'); } })();
Alert is displayed, because response.ok is true, but without ad blocker is false. Adding ok: { value: false; } to:
response.ok
true
false
ok: { value: false; }
Scriptlets/src/helpers/noop-utils.ts
Lines 126 to 132 in 85b3346
This issue - #394 (comment) could be also fixed.
I think that the problem is that website overrides Object.defineProperties which is used by prevent-fetch.
The text was updated successfully, but these errors were encountered:
maximtop
No branches or pull requests
Steps to reproduce:
2, Go to - https://example.org/
3. In browser console run:
Alert is displayed, because
response.ok
istrue
, but without ad blocker isfalse
.Adding
ok: { value: false; }
to:Scriptlets/src/helpers/noop-utils.ts
Lines 126 to 132 in 85b3346
should fixes it.
This issue - #394 (comment) could be also fixed.
The text was updated successfully, but these errors were encountered: