您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自动跳转到目标网站
// ==UserScript== // @name 游民886 // @namespace gamersky-redirect // @version 1.01 // @description 自动跳转到目标网站 // @match *.gamersky.com/* // @grant GM_setValue // @grant GM_getValue // @grant GM_registerMenuCommand // @icon https://www.gamersky.com/favicon.ico // @license MIT // ==/UserScript== (function() { 'use strict'; // Create a UI for setting the target website GM_registerMenuCommand('设置目标网站', function() { const targetWebsite = prompt('请输入目标网站的URL:'); GM_setValue('targetWebsite', targetWebsite); }); // Get the target website from GM storage const targetWebsite = GM_getValue('targetWebsite'); // If we are on gamersky.com, redirect to the target website if (window.location.hostname === 'www.gamersky.com') { if (targetWebsite) { window.location.href = targetWebsite; } else { const confirmMsg = confirm('您还没有设置目标网站,是否前往设置?'); if (confirmMsg) { GM_registerMenuCommand('设置目标网站', function() { const targetWebsite = prompt('请输入目标网站的URL:'); GM_setValue('targetWebsite', targetWebsite); }); } } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址