edit: if you're using versions 0.38 or 0.39 of this script or last updated/installed it between July 31st, 2023 and August 28th, 2023, there was a security vulnerability that was fixed in version 0.40 (warning post)
I tend to open a lot of tabs and a lot of the time it's to check out the comments of a post
scrolling tabs (motion)

so here's a userscript that lets you see a post's comments without opening it in a new tab

click on the arrow to the left of the comment count to see the comments then click on it again to hide them
reopening the comments refreshes them
tested on both firefox and chrome with tampermonkey and also greasemonkey on firefox
markdown isn't supported (yet?)
any and all suggestions are welcome
edits under the break (last update: 2023-11-23T01:26:45Z, version 0.48)
- added support for greasemonkey
- deleted comments no longer break everything (hopefully)
- fixed the timestamps on deleted comments (because someone didn't test a last-minute change (I'm someone))
- added keyboard support (replaced mouseup with onclick whoops), removed 0 comment check (it now sends a request whenever you check comments since comments can be added after the page loads), and made it only check for new posts when the page updates instead of every second
- made comments link to the post instead of to the current page, removed the extra space added when there are no comments, and prevented the script from running on single post pages
- added a toggle in the code for absolute/relative links (whether the links only move the page or go to the original post then move the page); the default is relative links
- security fix (reverted to innerText bc the input wasn't getting sanitized oops)
- added support for light on dark mode
- fixed the css again (changes in the site's css broke everything but now styling on individual posts work :D)
❤️