Advertisement
ozuma5119

info.weisheng88.com.cn/blocker.js

Nov 16th, 2021
966
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.   _____ _______ _    _ ______ _____ _____  ______       _______
  3.  |  __ \__   __| |  | |  ____/ ____|  __ \|  ____|   /\|__   __|
  4.  | |  | | | |  | |__| | |__ | |  __| |__) | |__     /  \  | |  
  5.  | |  | | | |  |  __  |  __|| | |_ |  _  /|  __|   / /\ \ | |  
  6.  | |__| | | |  | |  | | |___| |__| | | \ \| |____ / ____ \| |  
  7.  |_____/  |_|  |_|  |_|______\_____|_|  \_\______/_/    \_\_|  
  8.                                                                                                                                
  9. Telegram: @DTHEGREAT
  10. */
  11.     document.oncontextmenu=new Function("event.returnValue=false;"); //禁止右键功能
  12.     document.onkeydown=MM_KeyPress;
  13.     function  MM_KeyPress(num){
  14.         //防止系统退格键
  15.         var keycode = event.keyCode;
  16.         if(keycode ==8)//屏蔽退格健
  17.         {
  18.             event.keyCode = 0;
  19.             return;
  20.         }
  21.         if(keycode >=122 && keycode <=123)//屏蔽f12功能键
  22.         {
  23.             event.keyCode = 0 ;
  24.             event.returnValue=false;
  25.             return;
  26.         }
  27.     }
  28.  
  29.  
  30. function fuckyou(){
  31.       window.close(); //关闭当前窗口(防抽)
  32.      window.location="about:blank"; //将当前窗口跳转置空白页
  33. }
  34.   function ck() {
  35.     console.profile();
  36.     console.profileEnd();
  37.     //我们判断一下profiles里面有没有东西,如果有,肯定有人按F12了,没错!!
  38.     if(console.clear) { console.clear() };
  39.                         if (typeof console.profiles =="object"){
  40.     return console.profiles.length > 0;
  41.                         }
  42. }
  43. function hehe(){
  44. if( (window.console && (console.firebug || console.table && /firebug/i.test(console.table()) )) || (typeof opera == 'object' && typeof opera.postError == 'function' && console.profile.length > 0)){
  45.   fuckyou();
  46. }
  47. if(typeof console.profiles =="object"&&console.profiles.length > 0){
  48. fuckyou();
  49. }
  50. }
  51. hehe();
  52. window.onresize = function(){
  53. if((window.outerHeight-window.innerHeight)>200)
  54. //判断当前窗口内页高度和窗口高度,如果差值大于200,那么呵呵
  55.    fuckyou();
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement