当前位置:网站首页>阻止别人使用浏览器调试
阻止别人使用浏览器调试
2022-06-22 20:50:00 【紫微前端】
var check = (function () {
var callbacks = [], timeLimit = 50, open = false;
setInterval(loop, 1);
return {
addListener: function (fn) {
callbacks.push(fn);
},
cancleListenr: function (fn) {
callbacks = callbacks.filter(function (v) {
return v !== fn;
});
}
}
function loop() {
var startTime = new Date();
debugger;
if (new Date() - startTime > timeLimit) {
if (!open) {
callbacks.forEach(function (fn) {
fn.call(null);
});
}
open = true;
window.stop();
alert('你想看代码吗?');
} else {
open = false;
}
}
})();
check.addListener(function () {
window.location.reload();
});边栏推荐
- Remote access and control - SSH Remote Management and TCP wrappers access control
- Use full function simulation design method
- 2021-08-22
- Cryptography series: certificate format representation of PKI X.509
- Spark SQL Generic Load/Save Functions(2.4.3)
- Valid parentheses
- leetcode. 11 --- container with the most water
- . Net 5.0 realizes the source code analysis of the oidc authentication part of single sign on through identityserver4
- mysql主从同步及其分库分表基本流程
- 保证数据库和缓存的一致性
猜你喜欢

The method of making videos of knowledge payment system support m3u8 format playback

Remote access and control - SSH Remote Management and TCP wrappers access control

Reasons for the failure of digital transformation and the way to success

《强化学习周刊》第50期:SafeRL-Kit、GMI-DRL、RP-SDRL & 离线元强化学习

c语言---17 函数简介

SourceTree版本管理常用操作

What are the indicators, dimensions and models in Business Intelligence BI data warehouse?

2020-12-04

2021-04-14

In the middle of the year, we will promote the integration of worry free, and the value-added package will be reduced by 6
随机推荐
Redis error reporting and common configurations
2021-04-14
Plan and change of continuous repair
Cryptography series: certificate format representation of PKI X.509
Spark SQL Start(2.4.3)
Using the hbuilder x editor to install a solution for terminal window plug-ins that are not responding
SqlServer 复制表的自增属性
Spark SQL accessing JSON and JDBC data sources
Generate detailed API and parameters of QR code using qrcodejs2
Greedy distribution problem (2)
AutoCAD - five annotation shortcuts
Lua-- use of data types, variables, loops, functions and operators
Remote access and control - SSH Remote Management and TCP wrappers access control
使用HBuilder X编辑器安装终端窗口插件未响应的解决方案
The link added in the bottom menu cannot jump to the secondary page
启牛app下载证券开户,是安全的吗?有风险嘛?
A SQL optimization case using order by and rownum
2021-08-21
2021-05-02
Fundamentals of shell programming (Part 7: branch statement -if)