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

Lemmy Plugins and Userscripts

2128 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
 

Target Instance should be adjusted as needed.

Similar to this one: https://feddit.de/post/822722 which I didn't know about 20 minutes ago before being linked to this community.

Additional support for the Community Browser of feddit.de to make the process easier

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

~~/post/ and /comment/ are also a couple other url schemes you can navigate to and fix (e.g. the https://feddit.de/post/822722 link in the OP~~. Nvm I think I just realized these numbers aren't canonical across instances. Surely the backend has an ID that every instance shares - is this exposed on the frontend? It would be cool if we could just go to lemmy.site/a9637e6c-780a-4de0-b02e-8277a54cb978 and it would navigate us to the post we want.

Also, you might want to disconnect your observer while making changes, because I think any changes you make will cause some light recursion. An example of how I did it is here.

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

I did encounter the recursion problem during testing, it's already handled by checking if the link is set to the new domain.

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

Thanks.

P.S. If you change the filename extension to .user.js userscript managers will be able to pick it up once opened raw.

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

Thank you, that's easy enough to change.

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

I published basically the same script a few days ago except with comment support. We should all team up and turn it into one lol

load more comments
view more: next ›