5 ms·
The website can always detect an adblock. Just set a variable inside the ads.js and if it's not present, the ads are blocked. (or the file didn't load).
by angry-hacker 11y ago
The website can always detect an adblock.
Just set a variable inside the ads.js and if it's not present, the ads are blocked. (or the file didn't load).
- amelius 11y agoNo, the idea is that the ads.js runs on the real DOM. The shadow DOM is a copy of that DOM minus the ads. This is the DOM shown to the user.
- angry-hacker 11y agoHmm, sounds interesting, but wouldn't it need a lot of more resources for computing all that stuff? You also need to actually download and do the work with all those ads.js (that loads another 10 trackers).
- tokenizerrr 11y agoThen you would still get tracked. Half the point of adblockers is prevent the ad networks from tracking you.
- amelius 11y agoTo prevent this, the browser could use a fresh cookie every time you visit the site, except for sites you whitelist.
- untog 11y agoThat removes one of the huge benefits of ad blocking - saving bandwidth.