mirror of
https://github.com/chev2/scripts-styles.git
synced 2026-01-13 18:52:12 +00:00
Redirect Twitter to Nitter v1.0.4
- Add comment explaining INSTANCE_DOMAIN constant - Change default value of INSTANCE_DOMAIN due to recent Nitter breaking change - Add x.com to domain matches
This commit is contained in:
parent
2253b83bf7
commit
8cc115caa8
1 changed files with 5 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name Redirect: Twitter to Nitter
|
||||
// @author Chev <riskyrains@proton.me> (https://github.com/chev2)
|
||||
// @version 1.0.3
|
||||
// @version 1.0.4
|
||||
// @description Redirects from Twitter to Nitter, a Twitter alternative front-end.
|
||||
// @namespace github.com/chev2
|
||||
// @license Apache-2.0
|
||||
|
|
@ -12,6 +12,7 @@
|
|||
// @downloadURL https://raw.githubusercontent.com/chev2/scripts-styles/main/scripts/redirect-twitter-nitter.user.js
|
||||
|
||||
// @match *://twitter.com/*
|
||||
// @match *://x.com/*
|
||||
// @icon https://icons.duckduckgo.com/ip3/nitter.net.ico
|
||||
|
||||
// @grant none
|
||||
|
|
@ -22,6 +23,8 @@
|
|||
'use strict';
|
||||
|
||||
// Put your instance domain here
|
||||
const INSTANCE_DOMAIN = "nitter.nl"
|
||||
// - If you don't have a preference, or don't know what this means,
|
||||
// the default value should work just fine
|
||||
const INSTANCE_DOMAIN = "nitter.net";
|
||||
location.hostname = INSTANCE_DOMAIN;
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue