Ensures that all URLs to Lemmy instances always point to your main/home instance.
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.
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:
If you initially set your home instance wrong or just want to change it, no worries - simply go to your settings on your new home instance and press the button for it!
Are there any plans to allow users to define a custom Lemmy/Kbin instance without needing to edit the script to add the instance URL? (is that what you meant by "better rewriting support for kbin community/user urls"?)
Yeah I will add this, I actually also want to make the updating of which instances are in the script automatic, or at least everyone be able to trigger an update from the settings page. Update it from some instance list API, which should hopefully also pick up more recent instances as soon as they start federating.
Unfortunately your purpleit.net instance didn't turn up on https://lemmyverse.net/, so when I just updated my instance list it didn't get added, so you'll probably have to re-edit your script file, sorry :( but that custom definition feature is coming soon!