Secret javascript-the secret of not being passed on

Make the page editable
first line

document.body.contentEditable=true

second line

document.designMode='on'

The third row

javascript:document.writeln(document.body.innerHTML)

fourth

document.write($("#contentText").html().replace(new RegExp("script","gi"),""));

fifth

document.onselectstart=new Function("event.returnValue=true");
document.oncopy=new Function("event.returnValue=true");

sixth

https://blog.csdn.net/seek97/article/details/99078771?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~top_click~default-2-99078771.nonecase&utm_term=%E8%A7%A3%E9%99%A4%E7%BD%91%E9%A1%B5%E5%A4%8D%E5%88%B6%E9%99%90%E5%88%B6&spm=1000.2123.3001.4430

Seventh for Baidu's documentation

document.onselectstart=new Function("event.returnValue=true");
document.oncopy=new Function("event.returnValue=true");

The eighth

https://blog.csdn.net/apache_z/article/details/103158852?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~sobaiduend~default-3-103158852.nonecase&utm_term=%E8%A7%A3%E9%99%A4%E7%BD%91%E9%A1%B5%E5%A4%8D%E5%88%B6%E9%99%90%E5%88%B6&spm=1000.2123.3001.4430

The ninth download package, Enable Copy plugin (removal of page copy restrictions)

https://files-cdn.cnblogs.com/files/huangcong/Enable-Copy_v1.15.rar

Tenth Baidu Document

https://blog.csdn.net/qq_41988167/article/details/106405953?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~baidu_landing_v2~default-7-106405953.nonecase&utm_term=%E8%A7%A3%E9%99%A4%E7%BD%91%E9%A1%B5%E5%A4%8D%E5%88%B6%E9%99%90%E5%88%B6&spm=1000.2123.3001.4430

The eleventh one
: Quickly remove the restrictions on the right mouse button, copy and other restrictions of webpage blocking

javascript:(function() {
    
     function R(a){
    
    ona = "on"+a; if(window.addEventListener) window.addEventListener(a, function (e) {
    
     for(var n=e.originalTarget; n; n=n.parentNode) n[ona]=null; }, true); window[ona]=null; document[ona]=null; if(document.body) document.body[ona]=null; } R("contextmenu"); R("click"); R("mousedown"); R("mouseup"); R("selectstart");})()

the twelfth

javascript:alert(document.onselectstart = document.oncontextmenu = document.onmousedown = document.onkeydown = function(){
    
    return true;});  

thirteenth

javascript: (function() {
    
    
	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
		}
	}
	alert(unescape('%u5DF2%u89E3%u9664%u590D%u5236%u4E0E%u53F3%u952E%u9650%u5236%uFF01') + '\nPower By Fantacy.');
	bd.style.webkitUserSelect = 'auto!important';
	bd.style.MozUserSelect = 'text!important';
})()

fourteenth

javascript:document.body.οncοpy=null;void(0);

fifteenth

https://blog.csdn.net/ZYD45/article/details/103708841?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~first_rank_v2~rank_v28-2-103708841.nonecase&utm_term=%E8%A7%A3%E9%99%A4%E7%BD%91%E9%A1%B5%E5%A4%8D%E5%88%B6%E9%99%90%E5%88%B6&spm=1000.2123.3001.4430

Right-page JS code used to lift restrictions
a

   javascript:(function () {
    
    
        function R(a) {
    
    
            ona = "on" + a;
            if (window.addEventListener){
    
    
                window.addEventListener(a, function (e) {
    
    
                    for (var n = e.originalTarget; n; n = n.parentNode){
    
    
                        n[ona] = null;
                    }
                }, true);
            }
            window[ona] = null;
            document[ona] = null;
            if (document.body){
    
    
                document.body[ona] = null;
            }
         }
        R("contextmenu");
        R("click");
        R("mousedown");
        R("mouseup");
        R("selectstart");
    })() ;

two

javascript:alert(document.onselectstart = document.onbeforecopy = document.oncontextmenu = document.onmousedown = document.onkeydown = function(){
    
    return true;});void(document.body.onmouseup=''); void(document.body.onselectstart=''); void(document.body.onmouseup=''); void(document.body.oncopy='');

three

javascript:alert(document.onselectstart = document.onbeforecopy = document.oncontextmenu = document.onmousedown = document.onkeydown = function(){
    
    return true;});void(document.body.onmouseup=''); void(document.body.onselectstart=''); void(document.body.onmouseup=''); void(document.body.oncopy='');javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

Guess you like

Origin blog.csdn.net/weixin_47021806/article/details/109829356