Created
October 11, 2023 01:39
-
-
Save Sazoji/46df1da3ed08ede87ff68316b16e9f24 to your computer and use it in GitHub Desktop.
Twitter2Nitter.net
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name twitter to nitter | |
// @match *://twitter.com/* | |
// @run-at document-start | |
// @author Sazoji | |
// @description Redirects from twitter to nitter | |
// @grant none | |
// @version 0.0.1 | |
// ==/UserScript== | |
function ChangeUrl() { | |
if(window.location.href.indexOf("twitter.com") > -1) { | |
window.stop(); | |
var updateLink = 'nitter.net'; | |
var currentLink = window.location.href; | |
currentLink = currentLink.replace('twitter.com', updateLink); | |
location.replace(currentLink); | |
} | |
} | |
ChangeUrl(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment