您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
redirects flathub to flathub beta.
// ==UserScript== // @name Redirect flathub to flathub beta // @namespace https://github.com/tazihad // @version 1.00 // @match *://flathub.org/* // @run-at document-start // @grant none // @description redirects flathub to flathub beta. // @author zihad // @license CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/ // @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt // ==/UserScript== var newDomain = "beta.flathub.org"; var newURL = location.protocol + "//" + newDomain //-- location.host + location.pathname + location.search + location.hash ; /*-- replace() puts the good page in the history instead of the bad page. */ location.replace (newURL);