Disable artificial selections

Tries to prevent script-initiated selection alterations

当前为 2015-10-01 提交的版本,查看 最新版本

// ==UserScript==
// @name        Disable artificial selections
// @description Tries to prevent script-initiated selection alterations
// @namespace   http://eldar.cz/myf/
// @license     MIT
// @version     1.0.3
// @grant       none
// ==/UserScript==

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

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址