3 ms·
In Firefox, you can simply set a preference and scripts won't be able to disable copy/paste. Go to about:config, and search for dom.event.clipboardevents.enabl
by shakna 5y ago
In Firefox, you can simply set a preference and scripts won't be able to disable copy/paste.
Go to about:config, and search for dom.event.clipboardevents.enabled and disable it.
- dbrgn 5y agoThis will probably break many other use cases as well (e.g. services that allow pasting formatted text and will convert it to unformatted text, or pages like GitHub where you can paste an image into the edit area).
- shakna 5y agoIt shouldn't break either of those usecases (I gave GitHub a go and it certainly seems to work). Those functions tend to be handled by a different preference (dom.allow_cut_copy). The only service I am aware of that it does break is Google Docs, because they handle things in an odd manner. But as they received several bug reports for that since 2017, I wouldn't get your hopes up that it'll ever be fixed.