Re-direct to main game website (IOGames.space) - Updated for 2025

Re-directs games from iogames.space to their main website.

  1. // ==UserScript==
  2. // @name Re-direct to main game website (IOGames.space) - Updated for 2025
  3. // @version 2.2.0
  4. // @description Re-directs games from iogames.space to their main website.
  5. // @author TigerYT
  6. // @match *://iogames.space/*
  7. // @icon https://iogames.space/images/app/favicon-48.png
  8. // @grant none
  9. // @run-at context-menu
  10. // @namespace https://greasyfork.org/users/137913
  11. // ==/UserScript==
  12.  
  13. document.querySelector(".GamePlayer__Overlay .GamePlayer__Overlay button")?.click();
  14.  
  15. const observer = new MutationObserver(() => {
  16. const button = document.querySelector(".GamePlayer__Overlay .GamePlayer__Overlay button");
  17. if (button) button.click();
  18.  
  19. const objectElement = document.getElementsByTagName('object')[0];
  20. if (objectElement && objectElement.data) window.location.replace(objectElement.data);
  21. });
  22.  
  23. observer.observe(document.body, {
  24. childList: true,
  25. subtree: true
  26. });