@@ -13,6 +13,7 @@ const targets = [
13
13
"mobile.twitter.com" ,
14
14
"pbs.twimg.com" ,
15
15
"video.twimg.com" ,
16
+ "platform.twitter.com"
16
17
] ;
17
18
18
19
let redirects = {
@@ -58,7 +59,9 @@ let redirects = {
58
59
"https://fuckthesacklers.network" ,
59
60
"https://nitter.govt.land" ,
60
61
"https://nitter.datatunnel.xyz" ,
61
- "https://nitter.esmailelbob.xyz"
62
+ "https://nitter.esmailelbob.xyz" ,
63
+ "https://tw.artemislena.eu" ,
64
+ "https://nitter.eu.org"
62
65
] ,
63
66
"onion" : [
64
67
"http://3nzoldnxplag42gqjs23xvghtzf6t6yzssrtytnntc6ppc7xxuoneoad.onion" ,
@@ -77,7 +80,7 @@ let redirects = {
77
80
"http://nitraeju2mipeziu2wtcrqsxg7h62v5y4eqgwi75uprynkj74gevvuqd.onion" ,
78
81
"http://nitter.lqs5fjmajyp7rvp4qvyubwofzi6d4imua7vs237rkc4m5qogitqwrgyd.onion"
79
82
]
80
- }
83
+ } ,
81
84
} ;
82
85
const getRedirects = ( ) => redirects ;
83
86
const getCustomRedirects = function ( ) {
@@ -124,12 +127,9 @@ function setDisableTwitter(val) {
124
127
125
128
126
129
function redirect ( url , initiator ) {
127
- if ( disableTwitter )
128
- return null ;
130
+ if ( disableTwitter ) return null ;
129
131
130
- if ( url . pathname . split ( "/" ) . includes ( "home" ) ) {
131
- return null ;
132
- }
132
+ if ( url . pathname . split ( "/" ) . includes ( "home" ) ) return null ;
133
133
134
134
let instancesList = [ ...nitterRedirectsChecks , ...nitterCustomRedirects ] ;
135
135
if ( instancesList . length === 0 ) return null ;
@@ -148,7 +148,6 @@ function redirect(url, initiator) {
148
148
149
149
else if ( url . pathname . split ( "/" ) . includes ( "tweets" ) )
150
150
return `${ randomInstance } ${ url . pathname . replace ( "/tweets" , "" ) } ${ url . search } ` ;
151
-
152
151
else
153
152
return `${ randomInstance } ${ url . pathname } ${ url . search } ` ;
154
153
0 commit comments