Advertisement
caffeinatedmike

PX404 Logic

Feb 15th, 2023
1,475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var t = {};
  2. t["PX404"] = Jn();
  3. var es = "|",
  4.   rs = window["chrome"],
  5.   os = "app",
  6.   as = "runtime",
  7.   cs = ["webstore", as, os, "csi", "loadTimes"]
  8.   ds = "webstore",
  9.   vs = "runtime",
  10.   ps = "onInstallStageChanged",
  11.   hs = "dispatchToListener",
  12.   As = "sendMessage",
  13.   ms = "install";
  14. function Jn() {
  15.   var t = "";
  16.   if (!rs) return t;
  17.   for (var n = 0, e = 0; e < cs.length; e++)
  18.     try {
  19.       n += (rs[cs[e]].constructor + "").length;
  20.     } catch (t) {}
  21.     t += n + es;
  22.     try {
  23.       rs[ds][ms](0);
  24.     } catch (n) {
  25.       t += (n + "").length + es;
  26.     }
  27.     try {
  28.       rs[ds][ms]();
  29.     } catch (n) {
  30.       t += (n + "").length + es;
  31.     }
  32.     if ("string" == typeof location.protocol && 0 === location.protocol.indexOf("http"))
  33.       try {
  34.         rs[vs][As]();
  35.       } catch (n) {
  36.         t += (n + "").length + es;
  37.       }
  38.       try {
  39.         rs[ds][ps][hs]();
  40.       } catch (n) {
  41.         t += (n + "").length;
  42.       }
  43.   return t
  44. }
  45. console.log(Jn()); // 109|66|66|70|80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement