DaleSwanson

joined 2 years ago
[–] [email protected] 25 points 1 year ago

https://avestura.dev/blog/explaining-the-postgres-meme

A good blog post explaining, at least a bit, everything in this image.

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

Thanks, that must be new since I last looked. Although it does seem to only allow you to swipe at the top of the post, not down in the comments.

 

I'm looking for an app which allows me to open a post and then just swipe to the left to see the next post down. So far I've tried Jerboa, Connect, and Sync and all seem to want to perform actions on whatever comment you happen to swipe on rather than move the entire post/thread.

[–] [email protected] 2 points 2 years ago (3 children)

If someone from lemmy.world posts to a BeeHaw community right now, I know BeeHaw users won't be able to see the post, but what about other lemmy.world users? What about users from kbin.social or any other instance? If people from other instances can still see the comments that seems like you could still have a conversation, just with a group of people that can't see it. Not sure how it works though, so curious if anyone here knows for sure.

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

Just out of curiosity, on what browser? I tested Firefox and Chrome and both worked.

 

I know there have been a few of these posted recently, but I modified a few of the ones I found to add one additional feature: If the page you are on is already the remote version, but for the wrong local instance, to still update that to your preferred local instance.

Much easier to explain what I mean with examples so here's some:
https://lemmy.world/c/technology -> https://kbin.social/m/[email protected]
https://lemmy.world/c/[email protected] -> https://kbin.social/m/[email protected]

The first they all do, the second is the feature I added.

Here's the code, just manually create a bookmark and enter this as the URL, with whatever you want as the name. Then go to a page for a community you want to see in your local instance and click the bookmark, and it should take you to that local version of that page.

It's set up to take you to kbin.social versions of page, but you can change that by editing the home_instance_domain and the home_instance_char.

javascript:(function(){
var home_instance_domain = 'kbin.social';
var home_instance_char = '/m/';
var prefix = 'https://';

var url = new URL(document.URL);
var base_url = url.hostname;
var path_name = url.pathname;
path_name = path_name.replace(/\/\w\//, home_instance_char);
if (path_name.includes(home_instance_domain)) {
  path_name = path_name.replace(/@.+/, '');
  new_url = prefix + home_instance_domain + path_name;
} else if (path_name.includes('@')) {
  new_url = prefix + home_instance_domain + path_name;
} else {
  new_url = prefix + home_instance_domain + path_name + "@" + base_url;
}
console.log(new_url);
window.location.href=new_url;
})();

Edited to also handle being on the federated version of you home instance, like this:
https://lemmy.world/c/[email protected] -> https://kbin.social/m/privacy