您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically redirects to another Libreddit instance if the one you're directed to has reached its rate limit/quota.
当前为
- // ==UserScript==
- // @name Automatic Libreddit Quota Redirector
- // @namespace happyviking
- // @version 1.26.0
- // @grant none
- // @run-at document-end
- // @license MIT
- // @description Automatically redirects to another Libreddit instance if the one you're directed to has reached its rate limit/quota.
- // @icon https://gitlab.com/uploads/-/system/project/avatar/32545239/libreddit.png
- // @author HappyViking
- // <<INSTANCES START HERE>>
- // @match https://libreddit.bus-hit.me/*
- // @match https://libreddit.freedit.eu/*
- // @match https://libreddit.oxymagnesium.com/*
- // @match https://libreddit.privacy.com.de/*
- // @match https://libreddit.privacydev.net/*
- // @match https://libreddit.tux.pizza/*
- // @match https://lr.4201337.xyz/*
- // @match https://lr.aeong.one/*
- // @match https://lr.vern.cc/*
- // @match https://r.darklab.sh/*
- // @match https://reddit.baby/*
- // @match https://reddit.invak.id/*
- // @match https://reddit.leptons.xyz/*
- // @match https://safereddit.com/*
- // @match https://snoo.habedieeh.re/*
- // <<INSTANCES END HERE>>
- // ==/UserScript==
- function main() {
- const errorMessage = document.getElementById("error")
- if (!errorMessage) return;
- if(!errorMessage.querySelector("h1")?.innerHTML.includes("Too Many Requests")) return;
- const addedMessage = document.createElement("p")
- addedMessage.textContent = "Redirecting you to new instance..."
- errorMessage.appendChild(addedMessage)
- location.replace('https://farside.link/libreddit/' + window.location.pathname);
- }
- main()