yuesu/Comja/copyfalse.js
(完整代码) 5KBvar permitcopy=0;function nocopy(){articlesort();Getarticlepart(infoid);document.addEventListener("copy",function(b){if(permitcopy==0){var a=window.getSelection().toString();if(a.length>43){event.preventDefault();a=a.substring(0,76)+" \n\u672c\u7ad9\u4ec5\u9650\u0031\u0030\u0030\u4e2a\u5b57\u7b26\u590d\u5236 \n\u6765\u6e90\u003a"+window.location.href;if(event.clipboardData){event.clipboardData.setData("text",a)}else{if(window.clipboardData){window.clipboardData.setData("text",a)}}}}});$(document).on("click","#conpricopy",function(c){permitcopy=1;var b=$(".conprimsg p").text();console.log(b);var a=document.getElementById("inputcopy");a.value=b;a.select();document.execCommand("copy");alert("\u590d\u5236\u6210\u529f\uff0c\u53ef\u8d34\u7c98\uff01")});document.addEventListener("keyup",function(b){if(b.ctrlKey&&b.keyCode=="67"){var a=window.getSelection().toString();alert(a)}});document.onkeydown=function(a){var b=a||window.event;if(b.keyCode==123){b.keyCode=0;b.returnValue=false;return false}else{if((b.ctrlKey)&&(b.shiftKey)&&(b.keyCode==73)){return false}else{if((b.shiftKey)&&(b.keyCode==121)){return false}else{if((b.ctrlKey)&&(b.keyCode==85)){return false}else{if((b.ctrlKey)&&(b.keyCode==83)){return false}}}}}};if(isIE11==true){document.oncontextmenu=function(){return false}}nochechpage()}var havestop=0;function nochechpage(){if(havestop==0){var a=0;var b=new Date();b.toString=function(){a++;if(a>1){returnalert(1);havestop=1;return}};console.log("",b)}if(havestop==0){
//针对2022.6以后的chrome版本
console.log(Object.defineProperties(new Error, { message: {get() {
returnalert(3);
havestop=1;
return;
}},
toString: {value() {(new Error).stack.includes('toString@')&&alert('Safari')}}
}));
}window.addEventListener("devtoolschange",function(c){if(c.detail.isOpen){console.log("Is DevToolschange open:",c.detail.isOpen);returnalert(4);havestop=1;return}})}function returnalert(a){alert("\u6587\u7ae0\u8be6\u7ec6\u9875\u9762\u7981\u7528\u7f51\u9875\u8c03\u8bd5\u529f\u80fd\uff01\u8bf7\u5173\u95ed\u7f51\u9875\u8c03\u8bd5\u5de5\u5177\u518d\u8bbf\u95ee\uff01\u672c\u9875\u9762\u5c06\u4f1a\u8df3\u8f6c\u5230\u7f51\u7ad9\u9996\u9875\uff01");window.location.href="/";console.log("devtool open:"+a);if(isIE11==true){return false}}function articlesort(){var b=$("#"+newscontentid+" .sortp").length;var a=new Array(b);$("#"+newscontentid+" .sortp").each(function(c){var d=$(this).attr("aria-sort");a[d]=$(this).html()});$("#"+newscontentid+" .sortp").each(function(c){$(this).html(a[c])})}function Getarticlepart(a){var b=webd+"api/ArticlePart/"+a;$.ajax({type:"POST",url:b,dataType:"json",success:function(d){if(d!=null){var f=0;var e=0;var c="";for(i=0;i<d.length;i++){f=d[i].Id;if(f>0){e=d[i].Sort;c=d[i].Body;c=unescape(c.replace(/\\u/g,"%u"));$("#"+newscontentid+" .sortp").eq(e).html(c)}}$("body .loading-box").animate({opacity:0},300,function(){$("body .loading-box").remove();$("#"+newscontentid).removeClass("conloading")}.bind(this))}},error:function(c){alert("error ajax : load class error 文件名:"+fileurl)}})}function copymsg(){return false}function CopyAll(){var b=document.getElementById(newscontentid);if(b!=null){if(iscopy==1){var a=b.innerText;window.clipboardData.setData("Text",a);alert("\u590d\u5236\u6210\u529f")}else{alert("\u7cfb\u7edf\u5df2\u7981\u7528\u590d\u5236\u0021")}}}(function(){if(iscopy==0){nocopy()}})();function noimgcopy(){$("#"+newscontentid+" img").each(function(b){var f=$(this).attr("src");var d=$(this).parent();var a=$(this).width();var c=$(this).height();var e="<div class='imgcursor imgnocopy' date-title='"+f+"' style='text-indent:0;width:"+a+"px;height:"+c+"px; background-image:url("+f+"); background-size:cover;'> </div>";d.html(e);$(document).on("mouseenter","#"+newscontentid+" .imgcursor",function(g){$(this)[0].style.cssText=$(this)[0].style.cssText+";filter:alpha(opacity=90);opacity:0.9;cursor:pointer;"});$(document).on("mouseleave","#"+newscontentid+" .imgcursor",function(g){$(this)[0].style.cssText=$(this)[0].style.cssText+";filter:alpha(opacity=100);opacity:1.0;cursor:pointer;"});$(document).on("mouseenter","#"+newscontentid+" .imgcursor",function(g){isimghover=true});$(document).on("mouseleave","#"+newscontentid+" .imgcursor",function(g){isimghover=false});$(document).on("click","#"+newscontentid+" .imgcursor",function(){var m=$(this).attr("date-title");console.log(m);var o=0;var l=0;var k=new Image();k.setAttribute("src",m);imgwidtho=k.width;imgheighto=k.height;if(imgwidtho>480&&!$(this).hasClass("contentimg_list")){$("#wrap").show();if(imgwidtho>3000){o=3000;l=imgheighto*(3000/imgwidtho)}else{o=imgwidtho;l=imgheighto}var n="<img src='"+m+"' width='"+o+"' height='"+l+"' border='0' />";var n="<div class='imgnocopy' date-title='"+m+"' style='text-indent:0;width:"+o+"px;height:"+l+"px; background-image:url("+m+"); background-size:cover;'> </div>";n=n+'<div class="oneCloseBtn"><a href="javascript:void(0);" rel="nofollow"></a></div>';var g=$("#zoomtu");g.html(n);g.width(o);g.height(l);var j=document.documentElement.clientHeight;var p=$(document).scrollTop()+"px";if((j-(l+36))>0){p=((j-(l+36))/2+$(document).scrollTop())+"px"}if(l>j){g.css("top",p)}else{g.css("top",p)}var h="0px";if(document.documentElement.clientWidth>o){h="-"+(o+36)/2+"px";g.css("left","50%");g.css("margin-left",h)}else{g.css("left","0%");g.css("margin-left","0")}g.fadeIn("slow")}})})};
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
