by faster · 6y ago · 0 comments
No thanks. I'll be skipping that site in the future, unless that javascript comes from a place I can easily block with pi-hole.
document.addEventListener('copy', (event)=>{
const pagelink = `\n\nRead more: ${document.location.href}`;
event.clipboardData.setData('text', document.getSelection() + pagelink);
event.preventDefault();
})
To prevent this make a custom extension "run_at": "document_start"
and inject window.addEventListener('copy', e => e.stopImmediatePropagation(), true);
alternatively use for example https://www.tampermonkey.net with Experimental Inject Mode: Instant
to inject your pacifying script.Why on earth are you you blocking javascript using dns? Shouldn't you be doing it via the browser (via addons or site preferences)?