Florr Ultras Userscript (Test)

Grants some Ultras in florr

  1. // ==UserScript==
  2. // @name Florr Ultras Userscript (Test)
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0 BETA
  5. // @description Grants some Ultras in florr
  6. // @author Your Name
  7. // @match *://*.florr.io/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. // Function to obtain all ultras
  15. function getAllUltras() {
  16. // Assuming there's a global game object with a method to get ultras
  17. if (window.game && typeof window.game.obtainUltra === 'function') {
  18. const ultras = ['rose', 'starfish', 'sponge', 'wing', 'stinger', 'antenna', 'bubble', 'wing', 'shovel', 'stick', 'powder', 'light']; // List all ultras here
  19. ultras.forEach(ultra => {
  20. window.game.obtainUltra(ultra);
  21. });
  22. alert('All ultras have been obtained!');
  23. } else {
  24. console.error('Game object or obtainUltra method not found.');
  25. }
  26. }
  27. // Adding a button to the game interface for obtaining all ultras
  28. function addButton() {
  29. const btn = document.createElement('button');
  30. btn.innerHTML = 'Get All Ultras';
  31. btn.style.position = 'fixed';
  32. btn.style.top = '10px';
  33. btn.style.right = '10px';
  34. btn.style.zIndex = 1000;
  35. btn.addEventListener('click', getAllUltras);
  36. document.body.appendChild(btn);
  37. }
  38. // Wait for the game to load
  39. window.addEventListener('load', () => {
  40. addButton();
  41. });
  42. })();