您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A vile trick that may aid you in executing your beloved scripts in the novel version of the client
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://updategreasyfork.deno.dev/scripts/478491/1272517/splix-js-demodularizer.js
// ==UserScript== // @name splix-js-demodularizer // @namespace http://tampermonkey.net/ // @version 0.1.2 // @description A vile trick that may aid you in executing your beloved scripts in the novel version of the client // @author You // @match https://splix.io/ // @icon https://www.google.com/s2/favicons?sz=64&domain=splix.io // @grant none // @run-at document-start // ==/UserScript== await (async function() { 'use strict'; if (window.jsDemodularized) return; let clientCodeTimestamp = localStorage.getItem("clientCodeTimestamp"); if (clientCodeTimestamp && Math.abs(new Date().getTime() - Number.parseInt(clientCodeTimestamp)) < 1000 * 60 * 60) { const clientCode = localStorage.getItem("clientCode"); document.open('text/html'); document.write(clientCode); document.close(); window.jsDemodularized = true; } else { const response = await fetch("https://splix.io/"); let clientCode = await response.text(); clientCode = clientCode.replace(/type\=\"module\" src\=\"\.\/bundle\/main\-\w+\.js\"/, 'defer src="./bundle/main-b98314ab.js"'); localStorage.setItem("clientCode", clientCode); localStorage.setItem("clientCodeTimestamp", new Date().getTime()); location.reload(); } })();