转禁用审查元素,禁用控制台

Posted zouwangblog

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了转禁用审查元素,禁用控制台相关的知识,希望对你有一定的参考价值。

禁用按键

 document.addEventListener("touchmove", function (e)  e.preventDefault() , false);
        $(document).ready(function () 
            $(document).bind("contextmenu", function (e)  return false; );
        );
        $(document).ready(function () 
            $(document).bind("keydown", function (e)  e = window.event || e; if (e.keyCode == 116)  e.keyCode = 0; return false;  );
        );
        $(document).ready(function () 
            $(document).bind("keydown", function (e)  e = window.event || e; if (e.keyCode == 118)  e.keyCode = 0; return false;  );
        );
        $(document).ready(function () 
            $(document).bind("keydown", function (e)  e = window.event || e; if (e.keyCode == 122)  e.keyCode = 0; return false;  );
        );
        $(document).ready(function () 
            $(document).bind("keydown", function (e)  e = window.event || e; if (e.keyCode == 123)  e.keyCode = 0; return false;  );
        );
        $(document).ready(function () 
            $(document).bind("keydown", function (e)  e = window.event || e; if (e.keyCode == 83)  e.keyCode = 0; return false;  );
        );
        console.clear();

打开控制台跳转

 !function () 

            function w() 
                window['location']['href'] = "http://www.baidu.com/";
                return false
            
            window['onresize'] = function () 
                if (top['window']['outerHeight'] - top['window']['innerHeight'] > 200) 
                    w()
                
                if (top['window']['outerWidth'] - top['window']['innerWidth'] > 200) 
                    w()
                
            
        ();

升级版

 document.addEventListener("touchmove", function (e)  e.preventDefault() , false);
        $(document).ready(function () 
            $(document).bind("contextmenu", function (e)  return false; );
        );
        $(document).ready(function () 
            $(document).bind("keydown", function (e)  e = window.event || e; if (e.keyCode == 116)  e.keyCode = 0; return false;  );
        );
        $(document).ready(function () 
            $(document).bind("keydown", function (e)  e = window.event || e; if (e.keyCode == 118)  e.keyCode = 0; return false;  );
        );
        $(document).ready(function () 
            $(document).bind("keydown", function (e)  e = window.event || e; if (e.keyCode == 122)  e.keyCode = 0; return false;  );
        );
        $(document).ready(function () 
            $(document).bind("keydown", function (e)  e = window.event || e; if (e.keyCode == 123)  e.keyCode = 0; return false;  );
        );
        $(document).ready(function () 
            $(document).bind("keydown", function (e)  e = window.event || e; if (e.keyCode == 83)  e.keyCode = 0; return false;  );
        );
        console.clear();
        
 (function(vkR1) 
    "use strict";
    var KVfBefY2 = KVfBefY2 || ;

    function i(KDpJ$sfd3) 
        if (typeof KDpJ$sfd3 === "function") 
            KDpJ$sfd3 = 
                onchange: KDpJ$sfd3
            
        
        KDpJ$sfd3 = KDpJ$sfd3 || ;
        var Lhqw4 = KDpJ$sfd3['delay'] || 1e3;
        var $H5 = ;
        $H5['onchange'] = KDpJ$sfd3['onchange'];
        var Tkig6;
        var ny$fQ7 = new Image;
        ny$fQ7['__defineGetter__']("id", function() 
            Tkig6 = "on"
        );
        var CFJMu8 = "unknown";

        function f() 
            return CFJMu8
        
        $H5['getStatus'] = f;

        function u() 
            if (window['Firebug'] && window['Firebug']['chrome'] && window['Firebug']['chrome']['isInitialized']) 
                a("on");
                return
            
            Tkig6 = "off";
            console['log'](ny$fQ7);
            console['clear']();
            a(Tkig6);
        

        function a(wmQO9) 
            if (CFJMu8 !== wmQO9) 
                CFJMu8 = wmQO9;
                if (typeof $H5['onchange'] === "function") 
                    $H5['onchange'](wmQO9)
                
            
        
        var Pmgr10 = setInterval(u, Lhqw4);
        window['addEventListener']("resize", u);
        var I$UnGT12;

        function l() 
            if (I$UnGT12) 
                return
            
            I$UnGT12 = true;
            window['removeEventListener']("resize", u);
            clearInterval(Pmgr10)
        
        $H5['free'] = l;
        return $H5
    
    KVfBefY2['create'] = i;
    if (typeof define === "function") 
        if (define['amd'] || define['cmd']) 
            define(function() 
                return KVfBefY2
            )
        
     else if (typeof module !== "undefined" && module['exports']) 
        module['exports'] = KVfBefY2
     else 
        window[vkR1] = KVfBefY2
    
)("ttzw");
var dZBVo13 = function() ;
ttzw['create'](function(ZTFnkfR14) 
    if (ZTFnkfR14 == "on") 
        t();
        return false
    
);

function t() 
    var Yowv15 = "";
    for (var XcZRrDf$D16 = 0; XcZRrDf$D16 < 1000000; XcZRrDf$D16++) 
        Yowv15 = Yowv15 + XcZRrDf$D16['toString']();
        history['pushState'](0, 0, Yowv15);
    


function w() 
    window['location']['href'] = "http://www.baidu.com/";
    return false

window['onresize'] = function() 
    if (top['window']['outerHeight'] - top['window']['innerHeight'] > 200) 
        w()
    
    if (top['window']['outerWidth'] - top['window']['innerWidth'] > 200) 
        w()
    
;

以上是关于转禁用审查元素,禁用控制台的主要内容,如果未能解决你的问题,请参考以下文章

如何禁用日期控制按钮的 FullCalendar onClick 功能?

mysql禁用autocommit,以及遇到的问题(转)

html 禁用鼠标滚轮对网页滚动条的控制怎么实现?

iPhone Objective-C:使用导航控制器单击选项卡时禁用堆栈弹出

禁止保存,拖拽图片,禁用右键和F12

Firefox Web 控制台已禁用?