技术1
经验12340
魅力14
人气416
分享59
原创1
注册时间2021-7-5
最后登录2025-5-11
阅读权限80
在线时间365 小时
主题66
回帖1265

退休版主
 
- 积分
- 8177
- 人气
- 416
- 分享
- 59
   
|
发表于 2022-7-26 20:07:59
|
显示全部楼层
刚刚测试了,这个问题的确在Chrome和Firefox上都有,However,我的Brave表示一点问题没有
Anyway,你按后退键就好了a
[JavaScript] 纯文本查看 复制代码 function w() {
var e = function() {
if (x(window.devicePixelRatio)) return window.devicePixelRatio;
var e = window.screen;
return ! x(e) && !(!e.deviceXDPI || !e.logicalXDPI) && e.deviceXDPI / e.logicalXDPI
} ();
if (!1 === e) return ! 0;
var t = p.SIZE,
n = window.outerWidth - window.innerWidth * e > 200,
r = window.outerHeight - window.innerHeight * e > 300;
return n || r ? (N(t), !1) : (y(t), !0)
}
[JavaScript] 纯文本查看 复制代码 function N() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : p.UNKONW;
console.warn("You ar not allow to use DEVTOOL! \u3010type = ".concat(e, "\u3011")),
Y.clearIntervalWhenDevOpenTrigger && I(),
F(),
Y.ondevtoolopen(e, L),
g(e)
}
function P() {
if ("function" == typeof Y.ondevtoolclose) {
var e = h; ! b() && e && Y.ondevtoolclose()
}
}
var M = null,
T = null,
D = [],
j = 0;
function R() {
var e, t, n, r, o, a, i = !1,
c = function() {
i = !0
},
u = function() {
i = !1
};
e = c,
t = u,
n = window.alert,
r = window.confirm,
o = window.prompt,
a = function(n) {
return function() {
e && e(),
n.apply(void 0, arguments),
t && t()
}
},
window.alert = a(n),
window.confirm = a(r),
window.prompt = a(o),
function(e, t) {
var n, r, o;
void 0 !== document.hidden ? (n = "hidden", o = "visibilitychange", r = "visibilityState") : void 0 !== document.mozHidden ? (n = "mozHidden", o = "mozvisibilitychange", r = "mozVisibilityState") : void 0 !== document.msHidden ? (n = "msHidden", o = "msvisibilitychange", r = "msVisibilityState") : void 0 !== document.webkitHidden && (n = "webkitHidden", o = "webkitvisibilitychange", r = "webkitVisibilityState");
var a = function() {
document[r] === n ? t() : e()
};
document.removeEventListener(o, a, !1),
document.addEventListener(o, a, !1)
} (u, c),
M = window.setInterval((function() {
i || (D.forEach((function(e) {
var t = e.type,
n = e.handle;
y(t),
n(j++)
})), q(), P())
}), Y.interval),
T = setTimeout((function() { / (iphone | ipad | ipod | ios | android) / i.test(navigator.userAgent.toLowerCase()) && I()
}), Y.stopIntervalTime)
}
function A(e, t) {
D.push({
type: e,
handle: t
})
}
function I() {
window.clearInterval(M)
}
function F() {
window.clearTimeout(T)
}
[JavaScript] 纯文本查看 复制代码 var Y = {
md5: "",
ondevtoolopen: L,
ondevtoolclose: null,
url: "",
tkName: "ddtk",
interval: 200,
disableMenu: !0,
stopIntervalTime: 5e3,
clearIntervalWhenDevOpenTrigger: !1,
detectors: "all",
clearLog: !0,
disableSelect: !1,
disableCopy: !1,
disableCut: !1
},
V = ["detectors", "ondevtoolclose"];
function U() {
"function" == typeof Y.ondevtoolclose && !0 === Y.clearIntervalWhenDevOpenTrigger && (Y.clearIntervalWhenDevOpenTrigger = !1, console.warn("\u3010DISABLE-DEVTOOL\u3011clearIntervalWhenDevOpenTrigger \u5728\u4f7f\u7528 ondevtoolclose \u65f6\u65e0\u6548"))
}
var W = window.console || {
log: function() {}
},
z = l ?
function() {
return W.log.apply(W, arguments)
}: W.log,
B = l ?
function() {
return W.clear()
}: W.clear;
function q() {
Y.clearLog && B()
}
function $() {
var e = 73,
t = 85,
n = 83,
r = 123,
o = u ?
function(t, n) {
return t.metaKey && t.altKey && n === e
}: function(t, n) {
return t.ctrlKey && t.shiftKey && n === e
},
a = u ?
function(e, r) {
return e.metaKey && e.altKey && r === t || e.metaKey && r === n
}: function(e, r) {
return e.ctrlKey && (r === n || r === t)
};
window.addEventListener("keydown", (function(e) {
var t = (e = e || window.event).keyCode || e.which;
if (t === r || o(e, t) || a(e, t)) return e.returnValue = !1,
e.preventDefault(),
!1
}), !0),
Y.disableMenu && G(window, "contextmenu"),
Y.disableSelect && G(window, "selectstart"),
Y.disableCopy && G(window, "copy"),
Y.disableCut && G(window, "cut")
}
function G(e, t) {
e.addEventListener(t, (function(e) {
return (e = e || window.event).returnValue = !1,
e.preventDefault(),
!1
}))
}
_app-61965feb38f7e1b4.js
14064、14186及14282行起部分关键代码,牵扯到的函数有点多,还有一些懒得找了,JS我打包一下上传,你们想看的可以看看,已经修复过格式了,但是好像有个问题
如果屏蔽右键可以试试Shift+右键
不过我真的不知道他这些动作有啥目的,反正我觉得没啥必要,除非有见不得人的东西
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|