您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Adds a button to Nitter instances to redirect to a new instance.
您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
- // ==UserScript==
- // @name New Instance Button for Nitter
- // @namespace happyviking
- // @version 1.59.0
- // @grant none
- // @run-at document-end
- // @license MIT
- // @description Adds a button to Nitter instances to redirect to a new instance.
- // @icon https://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/Nitter_logo.svg/1024px-Nitter_logo.svg.png
- // @author HappyViking
- // <<INSTANCES START HERE>>
- // @match https://lightbrd.com/*
- // @match https://nitter.net/*
- // @match https://nitter.poast.org/*
- // @match https://nitter.privacyredirect.com/*
- // @match https://nitter.space/*
- // @match https://nitter.tiekoetter.com/*
- // @match https://xcancel.com/*
- // @match https://nitter.privacydev.net/*
- // @match https://nitter.lucabased.xyz/*
- // <<INSTANCES END HERE>>
- // ==/UserScript==
- function main() {
- const firstNavItem = document.querySelector('.nav-item');
- if (!firstNavItem) return
- const newButton = document.createElement("button")
- firstNavItem.prepend(newButton)
- newButton.appendChild(document.createTextNode("New Instance"))
- newButton.onclick = () => {
- location.replace('https://farside.link/nitter/' + window.location.pathname + window.location.search);
- }
- }
- main()