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
(async()=>{constads=awaitfetch('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');constcontentLength=(awaitads.text()).length;constcontentLengthHeader=Number(ads.headers.get('Content-Length'));if(!ads.ok||contentLength<100||contentLengthHeader<100){alert('Ads are blocked!');}})();
Alert will be displayed.
The text was updated successfully, but these errors were encountered:
adguard-bot
changed the title
Improve prevent-fetch — add ability to set random response content
Improve 'prevent-fetch' — add ability to set random response content
Oct 21, 2024
Similar to - #199 (comment) but for
prevent-fetch
.Also adding
Content-Length
header to response would be a good idea, related to - AdguardTeam/AdguardFilters#175797 and AdguardTeam/AdguardFilters#176137Steps to reproduce:
https://example.org/
Alert will be displayed.
The text was updated successfully, but these errors were encountered: