您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Re-directs games from iogames.space to their main website.
- // ==UserScript==
- // @name Re-direct to main game website (IOGames.space) - Updated for 2025
- // @version 2.2.0
- // @description Re-directs games from iogames.space to their main website.
- // @author TigerYT
- // @match *://iogames.space/*
- // @icon https://iogames.space/images/app/favicon-48.png
- // @grant none
- // @run-at context-menu
- // @namespace https://greasyfork.org/users/137913
- // ==/UserScript==
- document.querySelector(".GamePlayer__Overlay .GamePlayer__Overlay button")?.click();
- const observer = new MutationObserver(() => {
- const button = document.querySelector(".GamePlayer__Overlay .GamePlayer__Overlay button");
- if (button) button.click();
- const objectElement = document.getElementsByTagName('object')[0];
- if (objectElement && objectElement.data) window.location.replace(objectElement.data);
- });
- observer.observe(document.body, {
- childList: true,
- subtree: true
- });