MYPRO / verify96.js
DD8777's picture
initial commit
939831a
Raw
History Blame Contribute Delete
719 Bytes
const fs = require("fs");
let w = fs.readFileSync("worker.js", "utf8");
w = w.replace(/const SW_VERSION = \d+/, "const SW_VERSION = 96");
w = w.replace(/sw\.js\?v=\d+/g, "sw.js?v=96");
fs.writeFileSync("worker.js", w);
const checks = {
sw: /const SW_VERSION = (\d+)/.exec(w)[1],
noKeyTrue: (w.match(/noKey:\s*true/g) || []).length,
androidClNoKey: w.includes("androidClNoKey"),
early502: w.includes("client-direct — נגן ישיר"),
fallthrough: w.includes("do NOT early-return 502"),
externalAlways: w.includes("ALWAYS try") || w.includes("ALWAYS try (even when LOGIN"),
searchOld: w.includes("2.20250320") || w.includes("19.17.34"),
searchNew: w.includes("2.20250620"),
};
console.log(checks);