4 ms·
Block all Canvas, Audio and Video elements?
by Nadya 10y ago
Block all Canvas, Audio and Video elements?
- nix0n 10y agoYes, I'm looking for a browser plugin to do that (with whitelisting to turn some back on, preferably).
- Nadya 10y agouBlock or any other ad blocking add-on should be able to. Add "##video", "##audio", and "##canvas" to your blacklist rules to remove them from the DOM. Then you can whitelist on a per-site basis to turn them back on if desired.
- unexistance 10y agoCan I ask for an example entry / site that you actually do this?
- Grue3 10y agoDon't forget shit like WebRTC that's impossible to turn off and known to leak certain private information (such as internal IPs).
- cpeterso 10y agoHere is a Firefox add-on to disable WebRTC: https://addons.mozilla.org/firefox/addon/happy-bonobo-disable-webrtc/ https://addons.mozilla.org/firefox/addon/happy-bonobo-disabl... The source code is on GitHub: https://github.com/ChrisAntaki/disable-webrtc-firefox https://github.com/ChrisAntaki/disable-webrtc-firefox
- ComodoHacker 10y agoAll it does is set media.peerconnection.enabled to false. Looks like it's not enough, since WebTorrent[1] is working somehow anyway. [1] https://webtorrent.io/ https://webtorrent.io/
- Sylos 10y agoDo you get more than one peer? I seem to get only one when I disable media.peerconnection.enabled and I assume that one peer is just the server streaming the video directly.
- ComodoHacker 10y agoYes, it falls back to web seed. I've got explanation from devs.
- dredmorbius 10y agoI've actually seen some video play anyway despite having parent elements / own elements blocked. I block the source video content networks or whatever they're called, in /etc/hosts or equivalent. Those should be addable as custom blocklists in uBlock Origin as well. See following post higher up this thread.