With just a click, this bookmarklet will redirect you to a foreign community on your native Lemmy instance

It brings your favourite lemmy back home!

If you don’t know what it is, it’s a bookmark that runs a small piece of code that works in all desktop or even mobile browsers


javascript:(function(){
var url = new URL(document.URL);
var baseURL = url.hostname;
var pathname = url.pathname;
window.location.href="https://midwest.social" + pathname + "@" + baseURL;
})();

Usage

  1. Copy the code, replace “midwest.social” in the code to URL of your native instance (for example to “https://lemmy.ca”)
  2. Create a new bookmark, paste the code from previous step into URL field
  3. Go to a non native lemmy community
  4. Click the bookmarklet in your bookmarks bar to activate it.

Limitations

  • it doesn’t work on pages of foreign posts: only main pages of communities