4 ms·
How would they be able to ban adblocking? Browsers can be made and distributed anywhere in the world - even after a decade the pirate bay is still active. I ha
by tomjen3 11y ago
How would they be able to ban adblocking? Browsers can be made and distributed anywhere in the world - even after a decade the pirate bay is still active.
I have looked at webassembly. Let them do whatever they want there, ultimately they still have to write the text in the clear either in the dom or in a canvas (and a canvas is really slow to write, especially on a mobile phone) and in either case as long as your code can run before theirs in the same javascript, you can redefine a few key built in functions (e.g document.createElement, document.getElementsByTagName) you can force their code to call your implementation of whatever functions they want to write the information with - and you can write their text elsewhere, or filter images or whatever you want. Webassembly makes their code more difficult to debug, but they still have to call the same javascript functions straight javascript does.
So adblockers won't become obsolete, but it is possible that it will no longer be enough just to filter the dom.
- rlidwka 11y agoHmm... I wonder, if they put everything (both navigation and ads) on the same canvas (maybe pixel-by-pixel even), is there any way to block ads inside? If webgl will be adopted widely enough, this might even look plausible for some.
- tomjen3 11y agoPixel by pixel would be unbeleavably horribly slow in WebGL - OpenGL is all about loading graphics and moving verticies. I think I am getting what you are saying though, but functionally that would be the same as just rendering it server side and serve it as an image (if you write the pixels randomly you still have to use the correct coordinates) which is possible today, yet nobody is talking about doing that. So as long as they are still going to be rendering text client-side we can filter it. The moment they are not, we will have to start analysing the image, which should be fairly straight forward (ads are going to be in a rectangular area at least 20x20 pixels; text is going to a lot smaller and in ugly shapes).