Tenhou Desktop 4k Unlocker

Enable Tenhou Desktop 4K version for playing at Advanced & Special. Also removed event info.

  1. // ==UserScript==
  2. // @name Tenhou Desktop 4k Unlocker
  3. // @name:ja 天鳳 Desktop4K アンロッカー
  4. // @namespace http://tampermonkey.net/
  5. // @version 2024-12-11
  6. // @description Enable Tenhou Desktop 4K version for playing at Advanced & Special. Also removed event info.
  7. // @description:ja 天鳳 Desktop4K バージョンを有効にして、上級&特上でプレイします。また、イベント情報を削除しました。
  8. // @author You
  9. // @match https://tenhou.net/4/
  10. // @grant unsafeWindow
  11. // @run-at document-start
  12. // @license MIT
  13. //
  14. // ==/UserScript==
  15.  
  16. Object.defineProperties(unsafeWindow, {
  17. tenhouEventInfo: {
  18. get: () => {
  19. return null;
  20. },
  21. },
  22. });
  23.  
  24. unsafeWindow.WebSocket = (function () {
  25. let originalWebSocket = WebSocket;
  26. let counter = 0;
  27. return function (host, ...args) {
  28. counter++;
  29. if (counter % 2 == 0) host = host.replace("wss://b-wk.mjv.jp", "wss://b-ww.mjv.jp");
  30. return new originalWebSocket(host, ...args);
  31. };
  32. })();

QingJ © 2025

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