Lemmy Universal Link Switcher

Azzutee
2023-06-23T04:07:35Z

Ensures that all URLs to Lemmy instances always point to your main/home instance.

Please post issues at the GitLab repository if possible.

Description

Lemmy Universal Link Switcher, or LULs for short, scans all links on all websites, and if any link points to a Lemmy instance that is not your main/home instance, it rewrites the link so that it instead points to your main instance.

Also works on Firefox Android with the Tampermonkey extension!

Features

Rewrite links to Lemmy posts/comments to point to your home instance. Only after hovering over them, because getting home posts/comments links require communicating with the Lemmy servers, and we don't want to spam the servers.

video demonstrating links to posts being rewritten

Instantly rewrite all links of community or user links to Lemmy/kbin on all websites everywhere to your new instance! The rewritten links will have an icon next to it, and hovering/touching the icon will show you the original link, allowing you to go there if you want to.

If you are already on a page that has a corresponding page on your home instance, a link will automatically be added to the page header.

Home Instance Setup

Simply visit the Lemmy instance you want to set as your home while the script is active. You will be asked if you want to set this instance to your home instance:

Settings

If you want to change your home instance or add secondary instances in case you have multiple accounts, simply go to the script settings, accessible within Violent/Tampermonkey directly, or alternatively within any Lemmy instances' settings.

Common Issues

Does not work with Greasemonkey. Use Violentmonkey (open source) or Tampermonkey (closed source) instead.

Planned but not working on it:

Nicer tooltip styling (fit into page theme)

Signify that "Show at home" button is loading for posts/comments

Integrate with lmmy.to or other redirectors