当前位置:网站首页>Prevent others from using the browser to debug
Prevent others from using the browser to debug
2022-06-23 00:44:00 【Ziwei front end】
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(' Do you want to see the code ?');
} else {
open = false;
}
}
})();
check.addListener(function () {
window.location.reload();
});边栏推荐
- How to refine permissions to buttons?
- 贵金属现货白银如何呢?
- Hierarchy selector
- 数据库每日一题---第20天:按日期分组销售产品
- 如何入门机器学习?
- #yyds干货盘点#尾递归比递归好在哪儿
- SAP UI5 应用开发教程之一百零三 - 如何在 SAP UI5 应用中消费第三方库
- Cadence spb17.4 - Allegro - optimiser la spécification de l'angle de connexion de la polyligne pour une seule ligne électrique - polyligne à arc
- Kunlun distributed database technology advantages
- How about China International Futures Co., Ltd.? Is it a regular futures company? Is it safe to open an account online?
猜你喜欢

TIDB监控升级解决panic的漫漫探索之路

How to refine permissions to buttons?

外包干了四年,感觉废了..

Typecho仿盧松松博客主題模板/科技資訊博客主題模板

How to solve the problem that easycvr does not display the interface when RTMP streaming is used?

Introduction to the unique variable reading and writing function of Kunlun distributed database

OSPF experiment in mGRE environment
因为我说:volatile 是轻量级的 synchronized,面试官让我回去等通知!
![[machine learning watermelon book] update challenge [Day1]: 1.1 INTRODUCTION](/img/f6/b0df192502a59a32d8bac8c0862d02.png)
[machine learning watermelon book] update challenge [Day1]: 1.1 INTRODUCTION

OSPF comprehensive experiment
随机推荐
Cadence spb17.4 - Allegro - optimiser la spécification de l'angle de connexion de la polyligne pour une seule ligne électrique - polyligne à arc
Shell logs and printouts
如何入门机器学习?
瑞达期货安全么?期货开户都是哪些流程?期货手续费怎么降低?
工程目录导航
SAP ui5 application development tutorial 103 - how to consume third-party libraries in SAP ui5 applications
Mysql8.0 easily completes gtid master-slave replication
Is it safe to invest in funds through daily funds? I intend to open an account to buy funds
详解openGauss多线程架构启动过程
【滑动窗口】leetcode992. Subarrays with K Different Integers
Some thoughts about the technology of test / development programmers are very advanced, and they can't go on
Shell 查看帮助
Ansible learning summary (8) -- Summary of ansible control right raising related knowledge
中国国际期货有限公司怎么样,是正规的期货公司吗?网上开户安全吗?
Graphite statsd interface data format description
中金证券开户安全吗?它和中金银行是什么关系呢?
Psychological analysis of the safest spot Silver
Database daily question - day 20: selling products by date
SAP UI5 应用开发教程之一百零三 - 如何在 SAP UI5 应用中消费第三方库试读版
Kunlun distributed database sequence function and its implementation mechanism