aliases | category | classification | date | date_modified | draft | id | image | links | local_archive_links | pinned | series | tags | title | type | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
javascript |
public |
2023-05-10 14:25:40 -0700 |
2023-05-10 14:25:40 -0700 |
false |
20230510212540 |
false |
false |
|
Privacy Redirect Bookmarklet |
tech-note |
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).