this post was submitted on 11 Jun 2023
3 points (100.0% liked)

Lemmy.World Announcements

29028 readers
8 users here now

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

Ko-Fi (Donate)

Bunq (Donate)

Open Collective backers and sponsors

Patreon

Join the team

founded 1 year ago
MODERATORS
 

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 comment's thread
view the rest of the comments
[โ€“] Yoru@lemmy.world 2 points 1 year ago (2 children)

Hello, I just made a new bookmarklet where it automatically transfers all of your subscribed communities to another instance, can be found here

[โ€“] Zeus@lemmy.world 2 points 1 year ago* (last edited 1 year ago)

i'll be honest, i'm not sure what that's for? is it moving to another account if you want to change your home instance? if so, that's a good idea, i could add it to the post if you want in case this comment gets buried

spoileralthough i'm not entirely certain using https://github.com/Rob--W/cors-anywhere/issues/301 is a great idea..

[โ€“] Gamera8ID@lemm.ee 1 points 1 year ago

Tried this with a throwaway, but it's broken.

Subscription location has changed.

When corrected, it asks to visit https://cors-anywhere.herokuapp.com/corsdemo to request access. Despite doing so, it never gets past that point.

When/if you fix it, you might give some context about how you're handling user credentials.