lettimelineRedirect=true;// Redirect on main home page/timeline? true/false (script's still a wip so getting redirected to nitter by clicking on a tweet on the twitter timeline isn't programmed in yet)
letnitterInstance="https://nitter.ca/";// (PLEASE INCLUDE "https://" AT THE START OF THE DOMAIN AND "/" AT THE END) | What Nitter instance you'd like to be redirected to. Using ".ca" as default because it's the best instance I personally know, I also recommend "twiit.com", which selects an instance that's running well and isn't rate-limited.
//
console.log("is this even loading");
lethref=document.location.href;
varofm=href.split("/");
for(vari=0;i<2;i++){
ofm.shift();
}
console.log(ofm);
vargoTo=nitterInstance;
if(ofm[1]=="home"||ofm[1]==""||ofm[1]=="i"){
console.log("j");
if(timelineRedirect==false){
goTo="false"
}
}else{
for(varm=1;m<ofm.length;m++){
goTo+=ofm[m]+"/";
}
}
if(goTo=="false"){
console.log("no");
}else{
console.info("this was supposed to redirect to "+goTo);