Can you share how this works / code snippet? Would love to add this to my "Fk the modern internet" toolset. (I also use TamperMonkey which injects client js when url patterns are matched, to get rid of annoying cookie modals.)
(function dammit() {
setTimeout(dammit, 100);
let els = document.querySelectorAll('object,embed,iframe,video');
for (let el of els) {
el.parentNode.removeChild(el);
}
})();
Feel free to make it into a bookmarklet using this guide: