MooMoo.io Click Through Store

Click Through Store

安装此脚本
作者推荐脚本

您可能也喜欢MooMoo.io Custom Store

安装此脚本
  1. // ==UserScript==
  2. // @name MooMoo.io Click Through Store
  3. // @description Click Through Store
  4. // @author KOOKY WARRIOR
  5. // @icon https://moomoo.io/img/favicon.png?v=1
  6. // @match *://*.moomoo.io/*
  7. // @run-at document-start
  8. // @grant unsafeWindow
  9. // @license MIT
  10. // @version 0.5
  11. // @namespace https://gf.qytechs.cn/users/999838
  12. // ==/UserScript==
  13.  
  14. ;(() => {
  15. unsafeWindow.clickThroughStore = true
  16.  
  17. const checkTrustedSymbol = Symbol("checkTrusted")
  18. Object.defineProperty(Object.prototype, "checkTrusted", {
  19. get() {
  20. return this[checkTrustedSymbol]
  21. },
  22. set() {
  23. delete Object.prototype.checkTrusted
  24. this.checkTrusted = (e) => e
  25. },
  26. configurable: true
  27. })
  28.  
  29. unsafeWindow.addEventListener("DOMContentLoaded", () => {
  30. unsafeWindow.addEventListener("contextmenu", (e) => e.preventDefault())
  31.  
  32. unsafeWindow.addEventListener("mousedown", (event) => {
  33. if (
  34. event.target?.className == "storeItem" ||
  35. (event.target?.className != "joinAlBtn" &&
  36. event.target?.parentElement?.className == "storeItem")
  37. ) {
  38. document.getElementById("touch-controls-fullscreen").dispatchEvent(
  39. new MouseEvent("mousedown", {
  40. button: event.button
  41. })
  42. )
  43. }
  44. })
  45.  
  46. unsafeWindow.addEventListener("mouseup", (event) => {
  47. if (
  48. event.target?.className == "storeItem" ||
  49. event.target?.parentElement?.className == "storeItem"
  50. ) {
  51. document.getElementById("touch-controls-fullscreen").dispatchEvent(
  52. new MouseEvent("mouseup", {
  53. button: event.button
  54. })
  55. )
  56. }
  57. })
  58.  
  59. unsafeWindow.addEventListener("mousemove", (event) => {
  60. document.getElementById("touch-controls-fullscreen").dispatchEvent(
  61. new MouseEvent("mousemove", {
  62. clientX: event.clientX,
  63. clientY: event.clientY
  64. })
  65. )
  66. })
  67. })
  68. })()

QingJ © 2025

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