Re:Clipboard.js: Modern Copy to Clipboard
by myfonj on Wednesday September 30, 2015 @09:18AM
(#10303659)
From a quick glance it seems quite possible to make such extension: simple dark prototype crippling for inputs and textareas like
Selection.prototype.addRange = HTMLTextAreaElement.prototype.select = HTMLInputElement.prototype.select = function(){ console.info(this,' arificial selection disabled, sorry.') }
If you use some userscript manager, try it with
https://greasyfork.org/en/scripts/12762-disable-arificial-se...
Re:Clipboard.js: Modern Copy to Clipboard
by nacs on Wednesday September 30, 2015 @04:03PM
(#10306703)
Hate to be that guy but just wanted to point out the typo in the console message/userscript title:
"arificial" should be "artificial" (missing 't').
Re:Clipboard.js: Modern Copy to Clipboard
by myfonj on Thursday October 01, 2015 @09:25AM
(#10310927)
Hanks for pointing out, good catch! Fixed in userscript, also updated it a bit. Not able to fix it here.
Seems like quite frequent mistype BTW :]
Manipulating the selection is probably a specific case of the larger problem of terrible, incomplete reimplementations of UI that already exists. This inevitably ends up demonstrating the exact gap between what user environment is, and what the webpage author believes it ought to be.