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;
	})
()
You are viewing a single thread.
View all comments View context
0 points
*

i’m afraid i don’t. i did fiddle around a bit trying to find a relationship between url’s, but I couldn’t see one

if anyone more familiar with lemmy/activitypub can tell me, I’ll update / add to the bookmarklet

permalink
report
parent
reply
2 points

Staying on your home instance is currently an issue on the repo. Implementing it yourself would need using the search, which is complicated because it only works through a websocket connection.

permalink
report
parent
reply
1 point

i’m glad that’s being tracked, as a bookmarklet is not really a great solution; but it’s still not a complete solution. if i visit a lemmy post from outside lemmy.world (e.g. search engine), then there’s no way to go to the l.w version (to my knowledge)

permalink
report
parent
reply
0 points

You probably understood me the first time but I’m editing because I made a mistake in how I phrased it.

to another communityinstance

the number identifier is different on each communityinstance

permalink
report
parent
reply
1 point

for clarity, i’m presuming you’re talking about redirecting from e.g. this [https://lemmy.ml/post/1190997] to this [https://lemmy.world/post/38761]

but yeah, i’m afraid i can’t help [yet?]

permalink
report
parent
reply

Lemmy.World Announcements

!lemmyworld@lemmy.world

Create post

This Community is intended for posts about the Lemmy.world server by the admins.

Follow us for server news 🐘

Outages 🔥

https://status.lemmy.world

For support with issues at Lemmy.world, go to the Lemmy.world Support community.

Support e-mail

Any support requests are best sent to info@lemmy.world e-mail.

Report contact

Donations 💗

If you would like to make a donation to support the cost of running this platform, please do so at the following donation URLs.

If you can, please use / switch to Ko-Fi, it has the lowest fees for us

Join the team

Community stats

  • 487

    Monthly active users

  • 806

    Posts

  • 37K

    Comments