Reddit to Teddit/Libreddit Redirect Userscripts en (kbin.social)

I have been trying to avoid Reddit. However, I still often end up being forced to click on a link to a post while searching for something specific. It is a hassle to manually change the link to libreddit or teddit everytime.

For my own purposes, I wrote a userscript to redirect any Reddit link automatically to Libreddit. Since, I thought I should post it here since someone could find it useful, and many of you prefer using Teddit, I also made a Teddit version. You should install only one.

Reddit to Libreddit: https://greasyfork.org/en/scripts/469587-reddit-to-libreddit-redirect
Reddit to Teddit: https://greasyfork.org/en/scripts/469588-reddit-to-teddit-redirect

You will need a userscript manager addon like Violentmonkey installed in your browser to make use of these scripts.

Disclaimer: These are my first ever userscripts.

Thorned_Rose,
@Thorned_Rose@kbin.social avatar

For Firefox (don't know if it's on Chrome/Chromium) there's also the LibRedirect Addon which can also do YouTube, Tiktok, Imgur, Quora, and a bunch more to help protect your privacy and eyeballs.

dancedancedance,

On Android you can use UntrackMe. It's on F-Droid.

LollerCorleone,
@LollerCorleone@kbin.social avatar

I tried a while ago, but it wasn't working as intended for me.

LollerCorleone,
@LollerCorleone@kbin.social avatar

I have updated both the scripts. They will now redirect to a random instance than relying on just one. The script will also a button to the bottom right of the instances which will allow the user to reload the page they are on in a different instance (in case the one which was loaded has some issue).

Remmy,
@Remmy@kbin.social avatar

Just a note. Most libredditbinstancea will be shutting down as well. It's being modified to allow for you to add your own API key, but many large instances aren't going to be afford to continue running with the API changes.

LollerCorleone,
@LollerCorleone@kbin.social avatar

Yeah. This was also a learning exercise for me. Libreddit and Teddit devs seem to be thinking of switching to web scraping if nothing else works. Let's see how that goes.

lanbanger,

Firefox has the Redirector add-on: http://einaregilsson.com/redirector/, I used it to make sure I went to old.reddit.com

m-p-3,
@m-p-3@kbin.social avatar

@lanbanger

@LollerCorleone

Now I'm sad, I just found out the developer passed away in 2022 :(

https://web.archive.org/web/20230130225919/https://www.reddit.com/r/gamedev/comments/tghyq1/ueinaregilsson_created_the_game_site_cardgamesio/

LemmyStartNow,

Using the extension, but Both site seems to throw a 500 error

ppb1701,
@ppb1701@kbin.social avatar

@LemmyStartNow I loaded violentmonkey edge addon and copy pasted the script in the add (teddit version) and it works. There is a bit a delay as it redirects. But I'll take the delay over using "dead"it. now just to figure how to automate it from ios safari....

@LollerCorleone

ppb1701,
@ppb1701@kbin.social avatar

Side note: I added UserScipt extension on Safari on my Mac and IOS and copied the script in on it's editer and it works there too. iOS does have a slight delay at the moment before it goes landing on what looks like a Reddit error page. I'm thinking it's where it is attempting to hit the script as it first loads to promote their app. Still works so woot!

@LollerCorleone @LemmyStartNow

LollerCorleone,
@LollerCorleone@kbin.social avatar

I am glad it works. Teddit and Libreddit devs seem to be working on switching from API to web scraping. I hope they are successful. Otherwise, old reddit is the only choice.

ppb1701,
@ppb1701@kbin.social avatar

@LollerCorleone I hope so too. I don't wanna lose the wealth of knowledge and tips but I also don't want to give Reddit themselves the time of day.

@LemmyStartNow

LollerCorleone,
@LollerCorleone@kbin.social avatar

Yep! Btw, I have updated the script and added randomized instances than relying on a single one. Do let me know if you face any issues. At least till teddit and libreddit works.

ppb1701,
@ppb1701@kbin.social avatar

@LollerCorleone will do thanks! Updated them in my browsers. Will let you know.

@LemmyStartNow

LemmyStartNow,

Thank you for keeping me in the loop and for the suggested solution. Much appreciated!

ppb1701,
@ppb1701@kbin.social avatar

@LemmyStartNow
Used it multiple times in laptop and iPhone and it works great. Thank!
@LollerCorleone

LollerCorleone,
@LollerCorleone@kbin.social avatar

:-)

vtez44,

Add also randomization of the instance, in case the main one is down and for privacy. There's already libredirect addon which does that, but still cool.

LollerCorleone,
@LollerCorleone@kbin.social avatar

I will do that once I figure out how exactly to do it. I am still learning. For now I have used the instances that I prefer.

LollerCorleone,
@LollerCorleone@kbin.social avatar

Randomization added. Thanks for the suggestion!

  • Todo
  • Suscrito
  • Moderado
  • Favoritos
  • RedditMigration@kbin.social
  • random
  • noticiascr
  • CostaRica
  • Todos las revistas