this post was submitted on 31 Mar 2025
12 points (100.0% liked)

Technology

1090 readers
67 users here now

A tech news sub for communists

founded 2 years ago
MODERATORS
 

cross-posted from: https://hexbear.net/post/4486416

I've been slowing building a kind of "tool box" for myself using Tampermonkey, that makes the LemmyUI do some stuff I wanted. I finally have it in a stable place and wanted to share it with everyone. You can see the repo above, or read below.


Reds-Lemmy-Tools

This is a userscript that can be used with Tampermonkey or other userscript plugins.

Features

This small utility adds the following features to the LemmyUI.

  • External Community Highlight
  • URL post "Quick Search" button in post feed
  • Auto-Closes the Subscribed Communities sidebar.

External Community Highlight

Posts in the feed that are made in a federated community will be highlighted. I implemented this so I could distinguish local posts from remote posts in the feed. See the screenshot below for an example of what this looks like.

URL post "Quick Search" button in post feed

I also call this the "Combat Liberalism" button.

Posts that have an external URL as part of their post will have a ๐Ÿ” icon in the post's action button area. This button will open a new window to your instance's search page, searching on the post's URL. I implemented this because the "Cross Posting" feature of the UI is frankly strange. Instead of some explicit "Cross Posting" list, I would rather just see where else the post's URL has been posted across federated communities. So, this search button will show you exactly that. This way you can find out where else this conversation is happening, and engage with or read other comments on the topic.

Search Button:

Search Results:

Auto-closes the Subscribed Communities sidebar

This one does what it says on the tin. My subscribed communities list is massive, and it stretches on forever, it feels like. This simply clicks that minimize box for me when the page loads.

Notes

  1. The default match query is for Hexbear.net. You will want to update that with your preferred instance. // @match *://hexbear.net/*
top 1 comments
sorted by: hot top controversial new old
[โ€“] ksynwa@lemmygrad.ml 4 points 1 day ago

Are extensions like tampermonkey able to autoupdate scripts that are hosted on sites like github/codeberg?