i find it annoying to have to manually change urls to subscribe to a community outside lemmy.world, so i wrote a bookmarklet to quickly switch to the lemmy.world instance

to use, just drag the following code to your bookmarks bar (name it whatever you like), then click it when you want to use it

javascript:(function() {const myInst="lemmy.world";let currUrl=window.location.toString().split("/");let currInst=currUrl[2];currUrl[2]=myInst;let newUrl=currUrl.join("/")+"@"+currInst;window.location=newUrl;})();

readable version:

javascript:(
	function() {
		// make sure to change this if using on a different instance
		const myInst="lemmy.world";
		let currUrl=window.location.toString().split("/");
		let currInst=currUrl[2];
		currUrl[2]=myInst;
		let newUrl=currUrl.join("/")+"@"+currInst;
		window.location=newUrl;
	})
()
  • @Grenfur
    link
    English
    21 year ago

    Interesting. ok I’ll dig further into it being Ghostery related then.

    For your sanity, yes, looks relatively the same on me end when I edit bookmark.

    • ⱿeusOP
      link
      fedilink
      English
      21 year ago

      weird. sorry i couldn’t help further… : (

      • @Grenfur
        link
        English
        21 year ago

        No worries at all. I actually found a post working on a FF extension that I think will work. https://beehaw.org/post/493791. Similar idea, but adds an icon to the left of links.

        I appreciate you taking the time to look into it though!

    • ⱿeusOP
      link
      fedilink
      English
      11 year ago

      weird - sorry i couldn’t help… : (