Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- _____ _______ _ _ ______ _____ _____ ______ _______
- | __ \__ __| | | | ____/ ____| __ \| ____| /\|__ __|
- | | | | | | | |__| | |__ | | __| |__) | |__ / \ | |
- | | | | | | | __ | __|| | |_ | _ /| __| / /\ \ | |
- | |__| | | | | | | | |___| |__| | | \ \| |____ / ____ \| |
- |_____/ |_| |_| |_|______\_____|_| \_\______/_/ \_\_|
- Telegram: @DTHEGREAT
- */
- document.oncontextmenu=new Function("event.returnValue=false;"); //禁止右键功能
- document.onkeydown=MM_KeyPress;
- function MM_KeyPress(num){
- //防止系统退格键
- var keycode = event.keyCode;
- if(keycode ==8)//屏蔽退格健
- {
- event.keyCode = 0;
- return;
- }
- if(keycode >=122 && keycode <=123)//屏蔽f12功能键
- {
- event.keyCode = 0 ;
- event.returnValue=false;
- return;
- }
- }
- function fuckyou(){
- window.close(); //关闭当前窗口(防抽)
- window.location="about:blank"; //将当前窗口跳转置空白页
- }
- 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)>200)
- //判断当前窗口内页高度和窗口高度,如果差值大于200,那么呵呵
- fuckyou();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement