@filteringdev/lottery-mobile-bypass 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
// ==UserScript==
|
|
3
3
|
// @name lottery-mobile-bypass
|
|
4
|
-
// @version 1.0.
|
|
4
|
+
// @version 1.0.2
|
|
5
5
|
// @match *://dhlottery.co.kr/*
|
|
6
6
|
// @match *://*.dhlottery.co.kr/*
|
|
7
7
|
// @grant unsafeWindow
|
|
8
|
+
// @run-at document-start
|
|
8
9
|
// @downloadURL https://cdn.jsdelivr.net/npm/@filteringdev/lottery-mobile-bypass@latest/dist/lottery-mobile-bypass.user.js
|
|
9
10
|
// @updateURL https://cdn.jsdelivr.net/npm/@filteringdev/lottery-mobile-bypass@latest/dist/lottery-mobile-bypass.user.js
|
|
10
11
|
// ==/UserScript==
|
|
@@ -12,9 +13,18 @@
|
|
|
12
13
|
// ../userscript/source/index.ts
|
|
13
14
|
String.prototype.indexOf = new Proxy(String.prototype.indexOf, {
|
|
14
15
|
apply(Target, ThisArg, Args) {
|
|
15
|
-
let Filter = "win16|win32|win64|mac
|
|
16
|
-
if (
|
|
17
|
-
return
|
|
16
|
+
let Filter = "win16|win32|win64|mac";
|
|
17
|
+
if (typeof navigator.platform !== "undefined" && typeof Args[0] === "string" && navigator.platform.toLowerCase() === Args[0] && ThisArg.includes(Filter)) {
|
|
18
|
+
return 16;
|
|
19
|
+
}
|
|
20
|
+
return Reflect.apply(Target, ThisArg, Args);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
RegExp.prototype.test = new Proxy(RegExp.prototype.test, {
|
|
24
|
+
apply(Target, ThisArg, Args) {
|
|
25
|
+
let Filter = "win16|win32|win64|mac";
|
|
26
|
+
if (typeof navigator.platform !== "undefined" && typeof Args[0] === "string" && navigator.platform === Args[0] && ThisArg.source.toLowerCase().includes(Filter)) {
|
|
27
|
+
return true;
|
|
18
28
|
}
|
|
19
29
|
return Reflect.apply(Target, ThisArg, Args);
|
|
20
30
|
}
|