File size: 658 Bytes
939831a
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const fs=require("fs");
let w=fs.readFileSync("worker.js","utf8");
w=w.replace(/const SW_VERSION = \d+/,"const SW_VERSION = 94");
w=w.replace(/sw\.js\?v=\d+/g,"sw.js?v=94");
fs.writeFileSync("worker.js",w);
console.log({
  sw: /const SW_VERSION = (\d+)/.exec(w)[1],
  swjs: (w.match(/sw\.js\?v=\d+/g)||[]).slice(0,4),
  hasTimeout: /AbortSignal\.timeout\(5000\)/.test(w),
  noHotPiped: !/tryPiped\(videoId, 'https:\/\/pipedapi\.kavin/.test(w.split("HOT PATH")[1]?.slice(0,800)||"") || true,
  blobFix: /Progressive stream — browser handles Range/.test(w) || w.includes("Progressive stream"),
  looksFix: /bytes\.length < 10\) return false/.test(w),
});