Upsilon Simulator Auto Fullscreen (Alternative)

Automatically fullscreens the Online Upsilon Simulator (alternative which clicks a button, but has a delay because the button only works after the simulator loads in)

  1. // ==UserScript==
  2. // @name Upsilon Simulator Auto Fullscreen (Alternative)
  3. // @namespace https://greasyfork.org/en/users/1380971
  4. // @version 1.0
  5. // @description Automatically fullscreens the Online Upsilon Simulator (alternative which clicks a button, but has a delay because the button only works after the simulator loads in)
  6. // @author MigPro
  7. // @license GPL3
  8. // @icon https://getupsilon.web.app/favicon.ico
  9. // @match https://getupsilon.web.app/simulator/simulator.dark.html
  10. // @match https://getupsilon.web.app/simulator/simulator.light.html
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. window.addEventListener('load', function() {
  18. setTimeout(function() {
  19. const fullscreenButton = document.querySelector('#action-fullscreen');
  20. if (fullscreenButton) {
  21. fullscreenButton.click();
  22. }
  23. }, 1000);
  24.  
  25. });
  26.  
  27. })();