MooMoo.io Text Custimazition

MooMoo.io outline rendering to texts.

  1. // ==UserScript==
  2. // @name MooMoo.io Text Custimazition
  3. // @namespace https://moomoo.io/
  4. // @version 2024-08-29
  5. // @description MooMoo.io outline rendering to texts.
  6. // @author BianosakaSozinho
  7. // @match *://*.moomoo.io/*
  8. // @icon https://moomoo.io/img/favicon.png?v=1
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. const originalFillText = CanvasRenderingContext2D.prototype.fillText;
  16. const originalStrokeText = CanvasRenderingContext2D.prototype.strokeText;
  17.  
  18. CanvasRenderingContext2D.prototype.fillText = function(text, x, y, maxWidth) {
  19. if(text === `X`) return
  20. originalStrokeText.call(this, text, x, y, maxWidth);
  21. originalFillText.call(this, text, x, y, maxWidth);
  22. };
  23. })();