this post was submitted on 11 Aug 2023
4 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:
- Preface the submission with the type of enhancement - ex: [UserScript].
- Include a screenshot of the enhancement in use (where possible)
- Indicate the requirements for use (eg, greasemonkey, stylus, etc.)
Thanks!
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this would almost certainly require an extension, since you'd need some sort of persistent way to track "viewed" items. I don't think a userscript can do it.
Best bet will probably be Instance Assistant (!instance_assistant@lemmy.ca ), at some point in the future. Could always make a request directly, too since this would likely be a relatively popular feature.
Technically correct, but you already have that extension installed if you're able to run userscripts.
The script just requires
// @grant GM_setValue
and// @grant GM_getValue
and you can use those functions to store whatever, forever (or until you clear extension data).