62 lines
2.1 KiB
HTML
62 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Document</title>
|
|
</head>
|
|
<body>
|
|
<div id='text'></div>
|
|
<script>
|
|
;(function () {
|
|
var src = 'http://cdn.jsdelivr.net/eruda/1.0.5/eruda.min.js';
|
|
document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>');
|
|
document.write('<scr' + 'ipt>eruda.init();</scr' + 'ipt>');
|
|
})();
|
|
</script>
|
|
<script src='../npm/disable-devtool.min.js'></script>
|
|
<script>
|
|
const text = document.getElementById('text');
|
|
var detectors = getUrlParam('dt')
|
|
if(!detectors || detectors === 'all'){
|
|
detectors = 'all'
|
|
}else{
|
|
detectors = detectors.split(',')
|
|
}
|
|
console.log(detectors);
|
|
DisableDevtool({
|
|
md5: '0b9e05caf5000360ec1c263335bd83fe', // ddtk
|
|
// url: 'https://www.qq.com',
|
|
ondevtoolopen: function(type) {
|
|
// window.location.href = 'https://www.qq.com';
|
|
text.innerHTML += 'devtool opened!; type =' + type + '<br>';
|
|
// document.body.innerHTML = 'devtool opened!; type =' + type;
|
|
console.log(window.outerHeight, window.innerHeight)
|
|
// next();
|
|
// console.log(next);
|
|
},
|
|
clearIntervalWhenDevOpenTrigger: false,
|
|
interval: 1000,
|
|
// tkName: 'ddtk',
|
|
disableMenu: false,
|
|
// url: 'https://www.baidu.com'
|
|
detectors: detectors,
|
|
});
|
|
|
|
|
|
|
|
function getUrlParam (name) {
|
|
const search = window.location.search;
|
|
if (search !== '') {
|
|
const reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
|
|
const r = search.substr(1).match(reg);
|
|
if (r != null) {
|
|
return unescape(r[2]);
|
|
}
|
|
}
|
|
return '';
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |