Moomoo.io Force connect

Allows to connect to the full server

当前为 2022-07-18 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Moomoo.io Force connect
  3. // @author Murka
  4. // @description Allows to connect to the full server
  5. // @icon https://moomoo.io/img/favicon.png?v=1
  6. // @version 0.1
  7. // @match *://moomoo.io/*
  8. // @match *://*.moomoo.io/*
  9. // @run-at document-start
  10. // @grant none
  11. // @license MIT
  12. // @namespace https://greasyfork.org/users/919633
  13. // ==/UserScript==
  14. /* jshint esversion:6 */
  15.  
  16. /*
  17. Author: Murka
  18. Github: https://github.com/Murka007
  19. Discord: https://discord.gg/sG9cyfGPj5
  20. Greasyfork: https://greasyfork.org/en/users/919633
  21. */
  22.  
  23. (function() {
  24. "use strict";
  25.  
  26. const log = console.log;
  27. function createHook(target, prop, callback) {
  28. const symbol = Symbol(prop);
  29. Object.defineProperty(target, prop, {
  30. get() {
  31. return this[symbol];
  32. },
  33. set(value) {
  34. callback(this, symbol, value);
  35. },
  36. configurable: true
  37. })
  38. }
  39.  
  40. createHook(Object.prototype, "maxPlayers", function(that, symbol, value) {
  41. delete Object.prototype.maxPlayers;
  42. that.maxPlayers = value + 10;
  43. })
  44.  
  45. })();