Chrome 浏览器解除特殊网站的右键菜单限制

2016-07-10 1675点热度 0人点赞

很多国内的网站非常烦人的限制用户复制粘贴,其实可以通过 javascript 进行解除


新建一个收藏书签,修改网址,填入以下内容即可

javascript:(function (){var _0x320a=["body","onselectstart","oncopy","onpaste","onkeydown","oncontextmenu","onmousemove","ondragstart","onmousedown","wrappedJSObject","*","getElementsByTagName","length","已解除复制与右键限制!","",""," 请继续使用","webkitUserSelect","style","auto!important","MozUserSelect","normal!important"];var doc=document;var bd=doc[_0x320a[0]];bd[_0x320a[1]]=bd[_0x320a[2]]=bd[_0x320a[3]]=bd[_0x320a[4]]=bd[_0x320a[5]]=bd[_0x320a[6]]=bd[_0x320a[1]]=bd[_0x320a[7]]=doc[_0x320a[1]]=doc[_0x320a[2]]=doc[_0x320a[3]]=doc[_0x320a[4]]=doc[_0x320a[5]]=null;doc[_0x320a[1]]=doc[_0x320a[5]]=doc[_0x320a[8]]=doc[_0x320a[4]]=function (){return true;} ;with (document[_0x320a[9]]||document ){onmouseup=null;onmousedown=null;oncontextmenu=null;} ;var arAllElements=document[_0x320a[11]] (_0x320a[10] );for (var i=arAllElements[_0x320a[12]]-1;i>=0;i--){var elmOne=arAllElements[i];with (elmOne[_0x320a[9]]||elmOne ){onmouseup=null;onmousedown=null;} ;} ;alert (unescape (_0x320a[13] )+_0x320a[14]+unescape (_0x320a[15] )+_0x320a[16] );bd[_0x320a[18]][_0x320a[17]]=_0x320a[19];bd[_0x320a[18]][_0x320a[20]]=_0x320a[21]} )()

StarryVoid

Have a good time