5 ms·
How is this any different than getting ads from minified blobs of javascript?
by AgentME 6y ago
How is this any different than getting ads from minified blobs of javascript?
- nyolfen 6y agoi can usually block those scripts and still have a functioning page
- CraftThatBlock 6y agoYou can still block those blobs, as they too are loaded by URL.
- nyolfen 6y agowhat i am envisioning here is the content of a webpage compiled with ads therein. it would be desirable by the googles of the world for this very reason.
- kroltan 6y agoThis can happen as it stands with JS too, though.
- catlifeonmars 6y agoThis is still possible using JavaScript, and yet it is not widely seen. You can think of WebAssembly as another mechanism for executing code in the browser in the context of a web page. JavaScript is still required to (1) load the wasm binary, (2) evaluate it and (3) connect it to DOM APIs or really anything outside of the isolated wasm execution context.
- rasz 6y agoHow you block some forms of tracking/ads is you inject your own STUB javascript functionality before the offending script loads. https://github.com/uBlock-user/uBO-Scriptlets https://github.com/uBlock-user/uBO-Scriptlets This wont work with webassembly.
- Alexendoo 6y agoNone of these scriptlets would break if a site uses WASM, they're utilities for things like adding/removing/mutating elements from the DOM, modifying localStorage, stopping alert() executesitefunction.js could arguably be effected, but that relies on a site installing a particular function on window, which isn't required when using JS, and could be still done where the function is backed by WASM
- rasz 6y agoHmm this repo doesnt have the currently used scriptlets.js file, weird. I think this is the official one https://git.furworks.de/opensourcemirror/ublock-origin/src/branch/master/assets/resources/scriptlets.js https://git.furworks.de/opensourcemirror/ublock-origin/src/b... A lot of stubs, a lot of functionality to kill a script when tripping certain trigger action, or force some properties.
- avbor 6y agoDon't worry, won't be likely to happen - the ads that are displayed now as banners are literally bid on when it's loading, so at most the ad serving code would be bundled, but you would still be able to block the binaries they load.
- qbasic_forever 6y agoAdvertisers would hate that kind of model. They want perfectly targeted and customized ads for each individual viewer. Baking the ads into the content or page itself would be going back about 20 years in their world.
- Kuinox 6y agoThey can bake the ad servers side in the binaries.
- afiori 6y agowasm has no effect on that...
- pjmlp 6y agoYou cannot disable wasm.
- AgentME 6y agoThis isn't true. If you block javascript from running, then that will include blocking WebAssembly. WebAssembly is only started through javascript, and if things ever changes so that webpages can include WebAssembly directly, presumably it will also be controlled by the same browser settings that control whether javascript is executed.
- rasz 6y agoWebAssembly WebAssembly {compile: ƒ, validate: ƒ, instantiate: ƒ, compileStreaming: ƒ, instantiateStreaming: ƒ, …} delete WebAssembly Uncaught ReferenceError: WebAssembly is not defined
- pjmlp 6y agoGreat, now do that in a check box like JavaScript settings on browsers, without extensions.
- rasz 6y agoI have this running as a uBO scriptlet injected into every website before content javascript starts to execute *##+js(myscript) does various things, disables webassembly, websocket, AudioContext, serviceworkers, openDatabase and indexedDB, navigator.sendBeacon and window.opener, some fingerprinting randomization stuff, etc. I wish there was a Browser on the market actually letting you configure such things _per domain_ as Opera Presto used to, alas we are on our own now :(.
- rasz 6y agodoesnt matter if its minified as long as you can window.console.clear = function arsehole() {console.log(arsehole.caller, "Asshole script called console.clear()")} before it executes Stuff state of the art adblockers (uBO) inject to block ads today: https://raw.githubusercontent.com/uBlock-user/uBO-Scriptlets/master/scriptlets.js https://raw.githubusercontent.com/uBlock-user/uBO-Scriptlets...