splix-js-demodularizer

A vile trick that may aid you in executing your beloved scripts in the novel version of the client

当前为 2023-10-28 提交的版本,查看 最新版本

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/478491/1271872/splix-js-demodularizer.js

  1. // ==UserScript==
  2. // @name splix-js-demodularizer
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description A vile trick that may aid you in executing your beloved scripts in the novel version of the client
  6. // @author You
  7. // @match https://splix.io/
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=splix.io
  9. // @grant none
  10. // @run-at document-start
  11. // ==/UserScript==
  12.  
  13. await (async function() {
  14. 'use strict';
  15.  
  16. let clientCodeTimestamp = localStorage.getItem("clientCodeTimestamp");
  17.  
  18. if (clientCodeTimestamp && Math.abs(new Date().getTime() - Number.parseInt(clientCodeTimestamp)) < 1000 * 60 * 60) {
  19. const clientCode = localStorage.getItem("clientCode");
  20. document.open('text/html');
  21. document.write(clientCode);
  22. document.close();
  23. } else {
  24. const response = await fetch("https://splix.io/");
  25. let clientCode = await response.text();
  26. clientCode = clientCode.replace('<script type="module" src="./bundle/main-', '<script defer src="./bundle/main-');
  27. localStorage.setItem("clientCode", clientCode);
  28. localStorage.setItem("clientCodeTimestamp", new Date().getTime());
  29. location.reload();
  30. }
  31. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址