This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name chzzk-bypass | |
// @author eta66 ([email protected]) | |
// @match https://chzzk.naver.com/* | |
// @match https://*.chzzk.naver.com/* | |
// @grant none | |
// @require https://unpkg.com/xhook@latest/dist/xhook.min.js | |
// ==/UserScript== | |
xhook.after(function(t,e){if(-1!==t.url.indexOf("live-detail"))try{let n=JSON.parse(e.text);n.content&&n.content.p2pQuality&&(n.content.p2pQuality=[],Object.defineProperty(n.content,"p2pQuality",{configurable:!1,writable:!1})),e.text=JSON.stringify(n)}catch(r){console.error(r)}}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const crypto = require('node:crypto'); | |
async function main() { | |
let response = await fetch('https://www.fmkorea.com'); | |
let text = await response.text(); | |
if (response.status === 430) { | |
let html; | |
JSON.parse(text.match(/\[.*?\]/)[0]).forEach((v) => { | |
html += String.fromCharCode( | |
(atob(v.slice(3, -3)).charCodeAt(0) - 3 + 256) % 256 |