当前位置:网站首页>网站页面禁止复制内容 JS代码
网站页面禁止复制内容 JS代码
2022-07-05 16:12:00 【withkai44】
在你的网页位置添加上这部分js代码
document.onselectstart = new Function('return false');
document.oncontextmenu = new Function('return false');
if (window.sidebar) {
document.onmousedown = new Function('return false');
document.onclick = new Function('return true');
document.oncut = new Function('return false');
document.oncopy = new Function('return false');
}
document.addEventListener('keydown', function (e) {
if (e.keyCode === 83 && (navigator.platform.match('Mac') ? e.metaKey : e.ctrlKey)) {
e.preventDefault();
e.stopPropagation();
}
}, false);
边栏推荐
- scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
- How to install MySQL
- Starkware: to build ZK "universe"
- 【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
- Benji Banas membership pass holders' second quarter reward activities update list
- HiEngine:可媲美本地的云原生内存数据库引擎
- Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
- Google Earth Engine(GEE)——Kernel核函数简单介绍以及灰度共生矩阵
- Research and development efficiency measurement index composition and efficiency measurement methodology
- How does win11 change icons for applications? Win11 method of changing icons for applications
猜你喜欢

Keras crash Guide

【深度学习】深度学习如何影响运筹学?

Today's sleep quality record 79 points

养不起真猫,就用代码吸猫 -Unity 粒子实现画猫咪

Reduce the cost by 40%! Container practice of redis multi tenant cluster

【学术相关】多位博士毕业去了三四流高校,目前惨不忍睹……

Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)

《21天精通TypeScript-3》-安装搭建TypeScript开发环境.md

数据湖(十四):Spark与Iceberg整合查询操作

文件操作--I/O
随机推荐
Mongodb getting started Tutorial Part 04 mongodb client
关于new Map( )还有哪些是你不知道的
How to use FRP intranet penetration +teamviewer to quickly connect to the intranet host at home when mobile office
yarn 常用命令
【刷题篇】鹅厂文化衫问题
阿掌的怀念
Cartoon: what is MapReduce?
[es6] add if judgment or ternary operator judgment in the template string
Desci: is decentralized science the new trend of Web3.0?
OneForAll安装使用
StarkWare:欲构建ZK“宇宙”
sqlserver 做cdc 要对数据库性能有什么要求么
[echart] resize lodash to realize chart adaptation when window is zoomed
单商户 V4.4,初心未变,实力依旧!
DenseNet
[js] 技巧 简化if 判空
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
Global Data Center released DC brain system, enabling intelligent operation and management through science and technology
Can you help me see what the problem is? [ERROR] Could not execute SQL stateme
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL