Skip to content

Instantly share code, notes, and snippets.

@MadaraUchiha
Created July 2, 2026 10:48
Show Gist options
  • Select an option

  • Save MadaraUchiha/5b2155ba9dd9841c40e60190363fcc2d to your computer and use it in GitHub Desktop.

Select an option

Save MadaraUchiha/5b2155ba9dd9841c40e60190363fcc2d to your computer and use it in GitHub Desktop.
Redirect x.com to nitter.net (userscript)
// ==UserScript==
// @name X to Nitter
// @namespace https://github.com/MadaraUchiha
// @version 1.0.0
// @description Redirect all x.com URLs to nitter.net, keeping the same path
// @author MadaraUchiha
// @match *://x.com/*
// @match *://*.x.com/*
// @run-at document-start
// @grant none
// ==/UserScript==
(function () {
'use strict';
location.replace('https://nitter.net' + location.pathname + location.search + location.hash);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment