IdlePixel No More No Arrows

Suppresses the green text animation when you're out of arrows

  1. // ==UserScript==
  2. // @name IdlePixel No More No Arrows
  3. // @namespace lbtechnology.info
  4. // @version 1.0.0
  5. // @description Suppresses the green text animation when you're out of arrows
  6. // @author Lux-Ferre
  7. // @license MIT
  8. // @match *://idle-pixel.com/login/play*
  9. // @grant none
  10. // @require https://greatest.deepsurf.us/scripts/441206-idlepixel/code/IdlePixel+.js?anticache=20220905
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. class NoNoArrowPlugin extends IdlePixelPlusPlugin {
  17. constructor() {
  18. super("nonoarrow", {
  19. about: {
  20. name: GM_info.script.name,
  21. version: GM_info.script.version,
  22. author: GM_info.script.author,
  23. description: GM_info.script.description
  24. }
  25. });
  26. this.previous = "";
  27. }
  28.  
  29. onLogin(){
  30. var defaultToastAnim = Animations.scrollText
  31. Animations.scrollText = (icon, colorChosen, textChosen) => {
  32. if (textChosen==="YOU DON'T HAVE ANY ARROWS!"){
  33. return
  34. } else {
  35. defaultToastAnim(icon, colorChosen, textChosen)
  36. }
  37. }
  38. }
  39. }
  40.  
  41. const plugin = new NoNoArrowPlugin();
  42. IdlePixelPlus.registerPlugin(plugin);
  43. })();