Transparent Theme

yo

  1. // ==UserScript==
  2. // @name Transparent Theme
  3. // @namespace oy
  4. // @version 0.1
  5. // @description yo
  6. // @author Salt
  7. // @match https://arras.io/
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. console.log("%c Transparent Theme", "color: #B9E87E; font-size: 1.4em;");
  12. console.log("%c Developed By Salt", "color: #8ABC3F; font-size: 1.1em;");
  13.  
  14. CanvasRenderingContext2D.prototype._stroke = CanvasRenderingContext2D.prototype._stroke || CanvasRenderingContext2D.prototype.stroke;
  15. CanvasRenderingContext2D.prototype._fillText = CanvasRenderingContext2D.prototype._fillText || CanvasRenderingContext2D.prototype.fillText
  16. CanvasRenderingContext2D.prototype._strokeText = CanvasRenderingContext2D.prototype._strokeText || CanvasRenderingContext2D.prototype.strokeText
  17.  
  18. CanvasRenderingContext2D.prototype.stroke = function() {
  19. this.shadowBlur = this.lineWidth / 2;// remove this line to have no blur
  20. this.shadowColor = this.strokeStyle; // remove this line to have no blur
  21. this.fillStyle = "transparent"
  22. this._stroke(...arguments)
  23. this.shadowBlur = 0; // remove this line for no blur
  24. };
  25. CanvasRenderingContext2D.prototype.fillText = function() {
  26. this._fillText(...arguments)
  27. this.shadowBlur = 0;
  28. };
  29.  
  30. CanvasRenderingContext2D.prototype.strokeText = function() {
  31. this.strokeStyle = "transparent"
  32. this._strokeText(...arguments);
  33. };

QingJ © 2025

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