Thanks that super useful, especially in places like /c/newcommunities where people (including me) are still unsure how to properly link communities.
Lemmy.World Announcements
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 [email protected] e-mail.
Report contact
- DM https://lemmy.world/u/lwreport
- Email [email protected] (PGP Supported)
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
also, you should replace const myInst="lemmy.world";
with const myInst = window.location.hostname;
, it automatically fetches what instance you're on.
that (unless i'm misunderstanding) isn't the point of it. it's made for quickly taking you from e.g. https://lemmy.ml/c/jerboa
to https://lemmy.world/c/[email protected]
, so it needs a const to know which instance to take you to
edit: i guess i could replace let currInst=currUrl[2];
with let currInst=window.location.hostname;
but i can't see a practical difference and so i chose the shorter one
Hello, I just made a new bookmarklet where it automatically transfers all of your subscribed communities to another instance, can be found here
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
spoiler
although i'm not entirely certain using https://github.com/Rob--W/cors-anywhere/issues/301 is a great idea..
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.
do you know of any way to switch not a community but a post to another instance? afaik they're numeric so the number identifier is different on each instance which makes it hard.
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
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.
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)