[Plugin] On This Day — revisit what you wrote on this date in previous years #6441
zhengshenrui
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone 👋
I built a small frontend plugin for Memos that adds an "On This Day" panel: it shows what you wrote on today's date in previous years, grouped by year.
What it does
+1 day/-2 daysInstall
Memos → Settings → System → Additional script → paste the whole file → save → reload.
Grab it from the release rather than from
main, so a future change won't surprise you:https://github.com/zhengshenrui/memos-on-this-day/releases/latest
It's an instance-level setting, so it applies to every device and browser. To uninstall, clear the field and save.
About the security question
Pasting someone else's custom script means running their code with your session, so I tried to make this auditable instead of asking for trust:
/api/v1/memosand/api/v1/auth/refresheval, no external hostnames anywhere in the codelocalStoragewrites are button position and range preferenceThose aren't just claims — they're asserted in the test suite, so you can verify them yourself with
node --test. The whole thing is one uncompressed, dependency-free file you can read top to bottom.Compatibility
Tested on Memos 0.29.x. Newer and older versions are untested. If the button doesn't show up after an upgrade, please open an issue with the browser console error.
Feedback
Bug reports, feature requests and PRs are welcome. If this is something you'd like to see in core one day, I'm happy to help move it upstream.
Thanks!
(中文:这是给 Memos 网页版加的一个「往年今日」小插件,点开就能看到往年同一天自己写了什么。欢迎试用,有意见直接在这里回我。)
All reactions