Big Coins

shows coins bigger

  1. // ==UserScript==
  2. // @name Big Coins
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.0.1
  5. // @author Big watermelon
  6. // @license MIT
  7. // @description shows coins bigger
  8. // @match *://agma.io/*
  9. // @grant unsafeWindow
  10. // @run-at document-start
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. if (unsafeWindow.top !== unsafeWindow.self || document.querySelector("title")?.textContent?.includes("Just a moment"))
  17. return;
  18.  
  19. const SIZE = 300;
  20.  
  21. let overwritten = false;
  22. const originalPush = unsafeWindow.Array.prototype.push;
  23. unsafeWindow.Array.prototype.push = function(elem) {
  24. if (!overwritten && elem?.namePart !== undefined) {
  25. Object.defineProperty(elem.constructor.prototype, 'size', {
  26. set: function(size) {
  27. return this._size = size;
  28. },
  29. get: function() {
  30. return this.a == 13 ? SIZE : this._size;
  31. }
  32. });
  33. overwritten = true;
  34. }
  35. return originalPush.apply(this, arguments);
  36. };
  37. })();

QingJ © 2025

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