求这个站的源码

68次阅读

共计 3122 个字符,预计需要花费 8 分钟才能阅读完成。

  1. https://www.ruancang.net/#/sim

复制代码

禁了 F12,按 F12 会跳转到空白页

网友回复:

注册 联系一下站长

yushui 就是导航站改的

TMD F12 禁不了的,不按 F12 可以用鼠标啊

hdwan.net view-source:https://www.ruancang.net/ 自己看吧 <script type=”text/javascript”>     const handler = setInterval(function () {console.clear(); const before = new Date(); debugger; const after = new Date(); const cost = after.getTime() – before.getTime(); if (cost > 100) {}}, 1);     // 屏蔽右键菜单     document.oncontextmenu = function (event) {if (window.event) {event = window.event;}       try {var the = event.srcElement;         if (!((the.tagName == “INPUT” && the.type.toLowerCase() == “text”) || the.tagName == “TEXTAREA”)) {return false;}         return true;       } catch (e) {return false;}     }     // 屏蔽粘贴     document.onpaste = function (event) {if (window.event) {event = window.event;}       try {var the = event.srcElement;         if (!((the.tagName == “INPUT” && the.type.toLowerCase() == “text”) || the.tagName == “TEXTAREA”)) {return false;}         return true;       } catch (e) {return false;}     }     // 屏蔽复制     // 屏蔽剪切     document.oncut = function (event) {if (window.event) {event = window.event;}       try {var the = event.srcElement;         if (!((the.tagName == “INPUT” && the.type.toLowerCase() == “text”) || the.tagName == “TEXTAREA”)) {return false;}         return true;       } catch (e) {return false;}     }     // 禁止 f12     function fuckyou() {       window.open(“https://ruancang.net”, “_blank”); // 新窗口打开页面       window.close(); // 关闭当前窗口 ( 防抽)       window.location = “about:blank”; // 将当前窗口跳转置空白页     }     // 禁止 Ctrl+U     var arr = [123, 17, 18];     document.oncontextmenu = new Function(“event.returnValue=false;”), // 禁用右键       window.onkeydown = function (e) {var keyCode = e.keyCode || e.which || e.charCode;         var ctrlKey = e.ctrlKey || e.metaKey;         console.log(keyCode + “–” + keyCode);         if (ctrlKey && keyCode == 85) {e.preventDefault();         }         if (arr.indexOf(keyCode) > -1) {e.preventDefault();         }       }     function ck() {       console.profile();       console.profileEnd();       // 我们判断一下 profiles 里面有没有东西,如果有,肯定有人按 F12 了,没错!!if (console.clear) {console.clear()       };       if (typeof console.profiles == “object”) {return console.profiles.length > 0;}     }     function hehe() {       if ((window.console && (console.firebug || console.table && /firebug/i.test(console.table()))) || (typeof opera ==         ‘object’ && typeof opera.postError == ‘function’ && console.profile.length > 0)) {fuckyou();       }       if (typeof console.profiles == “object” && console.profiles.length > 0) {fuckyou();       }     }     hehe();     window.onresize = function () {if ((window.outerHeight – window.innerHeight) > 100)         // 判断当前窗口内页高度和窗口高度,如果差值大于 100,那么呵呵         fuckyou();}     document.onkeydown = function (event) {if ((event.keyCode == 112) || // 屏蔽 F1         (event.keyCode == 113) || // 屏蔽 F2         (event.keyCode == 114) || // 屏蔽 F3         (event.keyCode == 115) || // 屏蔽 F4         // (event.keyCode == 116) || // 屏蔽 F5         (event.keyCode == 117) || // 屏蔽 F6         (event.keyCode == 118) || // 屏蔽 F7         (event.keyCode == 119) || // 屏蔽 F8         (event.keyCode == 120) || // 屏蔽 F9         (event.keyCode == 121) || // 屏蔽 F10         (event.keyCode == 122) || // 屏蔽 F11         (event.keyCode == 123)) // 屏蔽 F12       {return false;}     }     window.onhelp = function () {       return false;}   </script> 复制代码

iiss 给我整笑了  fuckyou

正文完
 0