this post was submitted on 18 Jun 2023
13 points (100.0% liked)

Lemmy Plugins and Userscripts

2145 readers
1 users here now

A general repository for user scripts and plugins used to enhance the Lemmy browsing experience.

Post (or cross-post) your favorite Lemmy enhancements here!

General posting suggestions:

Thanks!

founded 1 year ago
MODERATORS
 

Adding new communities is a bit of a pain due to having to copy and paste the links into the search page.

I was thinking it would be much easier if one could have a button on lemmyverse.net or browse.feddit.de next to the name of the community to open the community in your instance's search page.

Example url:

[email protected] would open up in:

https://user.instance/search/q/!community%40instance.domain/type/All/sort/TopAll/listing_type/All/community_id/0/creator_id/0/page/1

Where user.instance is a variable that every user can fill in themselves in the script or in some other way.

I hope this is possible. Thank you <3

top 11 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago (2 children)

So, I made something that you might be looking for. https://reddthat.com/post/69331 If you try to open up something in a local instance and it fails because it doesn't find it, it should take you to the search like I think you're wanting.

My first script for something like this and on tampermonkey though, so let me know if it's not working or not what you're looking for.

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

Update: works like a charm. It also works incredibly well with lemmyverse.net when you've set you're home instance on there.

Thank you so much <3

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

Yes! This is what I was looking for! Thank you so much. I'll give it a try now!

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

Sounds amazingly helpful, hope this is something possible.

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

If you haven't yet, check the replies to this thread. Someone made a userscript just like I had requested.

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

I think that's what this extension does: https://sh.itjust.works/post/92686.

At least, that's essentially how it works for me. I set my home instance and then if I click on any community link it opens on my home instance.

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

Not exactly. It does but search the community and won't work is the community does not already exist on that instance.

I'm looking for a solution that can use the search option for communities that my instance does not already know.

[–] [email protected] 0 points 1 year ago* (last edited 1 year ago)

So, I made something that you might be looking for that pairs with what mershed linked pretty well. https://reddthat.com/post/69331 If you try to open up something in a local instance and it fails because it doesn't find it, it should take you to the search like I think you're wanting.

My first script for something like this and on tampermonkey though, so let me know if it's not working or not what you're looking for.

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

Lemmyverse already lets you. The "Home" button allows you to set the URL of your home instance.

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

Just checked and it's unfortunately not the same. It opens up the community in your home instance which will give you a 404 if it isn't already discovered.

I was referring to the search page in order to discover it.

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

Wait really? I need to check this out ASAP!

load more comments
view more: next ›