Upsilon Simulator Auto Fullscreen

Automatically fullscreens the Online Upsilon Simulator (https://getupsilon.web.app/simulator)

当前为 2024-10-14 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Upsilon Simulator Auto Fullscreen
  3. // @namespace https://greasyfork.org/en/users/1380971
  4. // @version 1.0
  5. // @description Automatically fullscreens the Online Upsilon Simulator (https://getupsilon.web.app/simulator)
  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. // Toggle fullscreen mode (Same code the fullscreen button executes when clicked)
  18. document.body.className = document.body.className === "fullscreen" ? "" : "fullscreen";
  19. })();