Disable arificial selections

tries to prevent script-initiated selection tweaks

Versão de: 30/09/2015. Veja: a última versão.

// ==UserScript==
// @name        Disable arificial selections
// @description tries to prevent script-initiated selection tweaks
// @namespace   http://eldar.cz/myf/
// @license     MIT
// @version     1.0.2
// @grant       none
// ==/UserScript==

Selection.prototype.addRange 
= HTMLTextAreaElement.prototype.select 
= HTMLInputElement.prototype.select 
= function(){
	console.log && console.log('artificial selection disabled at ',this);
	return false
}