
将下面代码放入子比主题后台自定义javascript代码中:
<!--禁用F12按键并提醒 lanrenn.cn-->
document.onkeydown = function () {
if (window.event && window.event.keyCode == 123) {
event.keyCode = 0;
event.returnValue = false;
new Vue({
data:function(){
this.$notify({
title:"嘿!别瞎按",
message:"你按这个想干嘛!",
position: 'bottom-right',
offset: 50,
showClose: false,
type:"error"
});
return{visible:false}
}
})
return false;
}
<!--禁用Ctrl+Shift+I-->
if ((event.ctrlKey) && (event.shiftKey) && (event.keyCode == 73)) {
event.keyCode = 0;
event.returnValue = false;
new Vue({
data:function(){
this.$notify({
title:"嘿!这个也不行",
message:"还是按点别的吧!",
position: 'bottom-right',
offset: 50,
showClose: false,
type:"error"
});
return{visible:false}
}
})
return false;
}};
<!--禁止图片拖放-->
document.ondragstart = function() {
return false
};
<!--禁止右键并提示-->
document.oncontextmenu = function() {
new Vue({
data: function() {
this.$notify({
title: "嘿!没有右键菜单",
message: "右键菜单被偷走了/(ㄒoㄒ)/~~",
position: 'bottom-right',
offset: 50,
showClose: false,
type: "warning"
});
return {
visible: false
}
}
})
return false;
}
<!--复制提醒 larenn.cn-->
$(function(){
if(window.localStorage.getItem("isClose") == 'yes'){
console.log('Notification通知状态:已关闭');
return false;
}else{
setTimeout(function(){
new Vue({data:function(){
this.$notify({
title:"签到任务已开放",
dangerouslyUseHTMLString:true,
message:"本站已经开启签到任务!更多详情可首页侧栏<span style='color: #f00;'> 消息通知 </span>查看",
dangerouslyUseHTMLString:true,
position:'bottom-right',
offset:50,
duration:0,
type:"success",
onClose() {
window.localStorage.setItem("isClose", "yes");
console.log('Notification通知状态:关闭成功');
}
});
return{visible:false}
}});
},5000);
}
});
//控制台添加说明 lanrenn.cn
if (window.console) {
var cons = console;
if (cons) {
console.log("\n %c 懒人素材网 - https://www.lanrenziyuan.cn","color:#fff; background: linear-gradient(to right , #7A88FF, #d27aff); padding:5px; border-radius: 10px;");
cons.log( "%c\n懒人素材网" , "font-size:70px;" );
console.log('%c网站:懒人素材网(https://www.lanrenziyuan.cn)\n说明:如果你通过控制台的方式获取CSS样式或者其他东东,相信你可能也看到本说明。如果你想一声不吭的拿走,请自己把所有涉及到的链接图片保存到本地,谢谢!\n更多精彩文章教程,请收藏本站。','color:red;font-size:20px;');
console.log('%c ','background-image:url("https://www.lanrenziyuan.cn/occ/img/lanren-LOGO-日间.png");background-size:100% 100%;padding:30px 150px;');
}
};
🎉 恭喜你发现了宝藏导航!>>点此前往<<
👋 感谢您的观看,对您有用就分享出去吧 !
如您有好的资源/素材,可参与创作者激励计划享投稿分成。分成介绍 投稿成功收录,即可获得1-10 元/篇奖励。(重复内容无奖励)
本站代码模板仅供学习交流使用请勿商业运营,严禁从事违法,侵权等任何非法活动,否则后果自负!
© 版权声明
本文是原创文章,采用CC BY-NC-SA 4.0协议,完整转载请注明来自懒人资源网
THE END
文章不错?点个赞呗
相关推荐
随机看看好帖需要善于发现
热门圈子总有聊不完的话题
-
685
文章数目
-
1028
注册用户
-
0
本周发布
-
1247
稳定运行
-
498284
总访问量

X
暂无评论内容