解除网页内容无法选择和右键屏蔽的限制

remove the limit of right key clicking and draging content to select

< Valutazione su 解除网页内容无法选择和右键屏蔽的限制

Recensione: OK - lo script funziona, ma ha degli errori.

§
Pubblicato: 05/10/2015

解除网页内容无法选择和右键屏蔽的限制

有些网址不能复制呀,比如起点网,纵横中文网

§
Pubblicato: 07/10/2015
// ==UserScript==
// @name         Qidian copy
// @namespace    http://your.homepage/
// @version      0.1
// @description  enter something useful
// @author       You
// @match        http://read.qidian.com/BookReader/*,*.aspx
// @grant        none
// ==/UserScript==

function run() {
    var doc=document;var bd=doc.body;bd.onselectstart=bd.oncopy=bd.onpaste=bd.onkeydown=bd.oncontextmenu=bd.onmousemove=bd.onselectstart=bd.ondragstart=doc.onselectstart=doc.oncopy=doc.onpaste=doc.onkeydown=doc.oncontextmenu=null;doc.onselectstart=doc.oncontextmenu=doc.onmousedown=doc.onkeydown=function (){return true;};with(document.wrappedJSObject||document){onmouseup=null;onmousedown=null;oncontextmenu=null;}var arAllElements=document.getElementsByTagName('*');for(var i=arAllElements.length-1;i>=0;i--){var elmOne=arAllElements[i];with(elmOne.wrappedJSObject||elmOne){onmouseup=null;onmousedown=null;}}var head=document.getElementsByTagName('head')[0];if(head){var style=document.createElement('style');style.type='text/css';style.innerHTML="html,*{-moz-user-select:auto!important;}";head.appendChild(style);}void(0);

    jQuery(document).off("selectstart").off("contextmenu");
}

run()
window.addEventListener('load', run);
§
Pubblicato: 07/10/2015
Modificato: 07/10/2015
// ==UserScript==
// @name         Qidian copy
// @namespace    http://your.homepage/
// @version      0.1
// @description  enter something useful
// @author       You
// @match        http://read.qidian.com/BookReader/*,*.aspx
// @grant        none
// ==/UserScript==

function run() {
    var doc=document;var bd=doc.body;bd.onselectstart=bd.oncopy=bd.onpaste=bd.onkeydown=bd.oncontextmenu=bd.onmousemove=bd.onselectstart=bd.ondragstart=doc.onselectstart=doc.oncopy=doc.onpaste=doc.onkeydown=doc.oncontextmenu=null;doc.onselectstart=doc.oncontextmenu=doc.onmousedown=doc.onkeydown=function (){return true;};with(document.wrappedJSObject||document){onmouseup=null;onmousedown=null;oncontextmenu=null;}var arAllElements=document.getElementsByTagName('*');for(var i=arAllElements.length-1;i>=0;i--){var elmOne=arAllElements[i];with(elmOne.wrappedJSObject||elmOne){onmouseup=null;onmousedown=null;}}var head=document.getElementsByTagName('head')[0];if(head){var style=document.createElement('style');style.type='text/css';style.innerHTML="html,*{-moz-user-select:auto!important;}";head.appendChild(style);}void(0);

    jQuery(document).off("selectstart").off("contextmenu");
}

run()
window.addEventListener('load', run);

起點分明只用改一部分就可以了的(

Pubblica risposta

Accedi per pubblicare una risposta.