Privacy Redirect Bookmarklet

A bookmarklet that can be used to open the current Twitter or Reddit page in my self-hosted Nitter or Libreddit instances.

I use Firefox on Desktop, so use Privacy Redirect, but I use Chromium based browsers on Android (Brave), so I needed a quick and simple solution.

Simply bookmark any page in Brave/Chromium/Chrome then edit the bookmark’s name to something like “Open in Nitter” and paste the below javascript into the URL field (obviously making sure to replace <URL-GOES-HERE> with a real URL.

javascript:(function(){window.location.href="<URL-GOES-HERE>" + window.location.pathname + window.location.search + window.location.hash;})()

To use the bookmarklet, whilst on a Twitter or Reddit page click the address bar and type to find the bookmarklet, and then click it. It should open the page in Nitter or Libreddit. It won’t work if you click the bookmark from the Bookmarks manager (don’t know why).

About

I'm a technology professional who's been passionate about computers since my Grandad introduced me to an Intel 386 back in the 90s when I was a kid. Those moments inspired a passion within for technology, and I've been playing around with anything with a circuit board ever since. Whenever I have a moment you can probably find me working on something computer-related, and this is where I like to write about those moments.