this post was submitted on 12 Jun 2023
10 points (100.0% liked)

Sopuli's Default Community

1258 readers
1 users here now

Community for all jibber-jabber. As this is a hard-coded community for every instance, we may get this doing something useful.

Simple test posts to [email protected]

Meta-discussion regarding the instance and support in problem situations [email protected]


Yhteisö kaikenlaiselle pÀlÀtykselle. Koska tÀmÀ on kovakoodattu yhteisö jokaiselle instanssille, voimme tehdÀ tÀllÀ ehkÀ jotain hyödyllistÀ.

Yksinkertaiset testiviestit mielellÀÀn [email protected]

Instanssia koskeva metakeskustelu ja tuki ongelmatilanteissa [email protected]

founded 3 years ago
MODERATORS
 

With just a click, this bookmarklet will redirect you to a foreign community on your native Lemmy instance

It brings your favourite lemmy back home!

If you don’t know what it is, it’s a bookmark that runs a small piece of code that works in all desktop or even mobile browsers


javascript:(function(){
var url = new URL(document.URL);
var baseURL = url.hostname;
var pathname = url.pathname;
window.location.href="https://sopuli.xyz" + pathname + "@" + baseURL;
})();

Usage

  1. Copy the code, replace "https://sopuli.xyz" in the code to URL of your native instance (for example to "https://lemmy.ca")
  2. Create a new bookmark, paste the code from previous step into URL field
  3. Go to a non native lemmy community
  4. Click the bookmarklet in your bookmarks bar to activate it.
top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 year ago

it works. Now Lemmy just needs something like this natively :)

[–] [email protected] 2 points 1 year ago (1 children)

Is this running as userscript in tempermonkey?

[–] [email protected] 3 points 1 year ago

No, it's not. What you have to do is put the block of Javascript on the post into a bookmark on your browser. I suppose one could also make a TamperMonkey-userscript out of this, but this is not that.