Skip to content

Instantly share code, notes, and snippets.

@thibaultmol
Created June 24, 2023 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thibaultmol/4a5dbd46559e69db5414ee9e92807d7f to your computer and use it in GitHub Desktop.
Save thibaultmol/4a5dbd46559e69db5414ee9e92807d7f to your computer and use it in GitHub Desktop.
Solution for opening a magazine on a Lemmy/Kbin from a different instance
javascript:(function(){let prefix='https://kbin.social/m/';let url=window.location.href;let parts=url.split('/');let finalPart=parts[parts.length-1];let host=parts[2];let newURL=prefix+finalPart+'@'+host;window.open(newURL,'_blank');})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment