rallamajoop: (Default)
rallamajoop ([personal profile] rallamajoop) wrote in [community profile] yuletide2022-09-27 09:30 pm

Add-on for quick-loading posts with multiple pages of comments

I wrote a Greasemonkey script a while back that's been useful for browsing through comments on posts like the Fandom Promo Post and Nomination Coordiation Station, and figured I'd link it here in case it's useful to anyone else. You can find it here at Greasyfork.

What it does
Basically, the script grabs just the top comments from all threads on all pages in any Dreamwidth post and compiles them into one page. Handy for when you want to run a Ctrl-F/textsearch for favourite tropes or genres in people's recs, or just want to browse without having to click through and separately search many different pages.

Further details at at this link, or under the cut below.

How to use it
Once you've got the script installed, just click the to the "Top-level comments only" link on any DW post (the regular threaded view shouldn't be affected). Later pages of comments will be added to the bottom of the page as they're loaded in sequential order, and may take some time to complete on larger posts.

Full threads can be accessed as normal by clicking on the 'Thread' links ‒ though I'd recommend opening threads in new tabs so you don't need to load the whole post more than once. 'Show all comments' links will work as normal on the first page, but will be broken on pages after that, as making them work proved too complicated (I've left the text indicating how many replies there are, but disabled the non-working links).

Like any GM script, you can can also disable it pretty easily from the monkey icon on your browser if it gives you any trouble.

How to install it
If you haven't used Greasemonkey or similar tools before, it's basically an add-on that makes it easy for people to create/install/use custom javascript-based scripts like this one. Greasyfork's own help section has you covered.

Script should work on whichever of the Greasemonkey variants (TaperMonkey, ViolentMonkey, etc) you prefer and/or is compatible with your browser (though if it doesn't, feel free to let me know and I'll see what I can do.)

Feedback and suggestions
Are welcome if you've got any!
snickfic: Buffy looking over her shoulder (Default)

[personal profile] snickfic 2022-09-27 03:09 pm (UTC)(link)
!!!! This sounds extremely useful, and not just for Yuletide. I am going to try this out right away. :D
snickfic: Buffy looking over her shoulder (Default)

[personal profile] snickfic 2022-09-27 03:19 pm (UTC)(link)
Update: I've installed it, and it's not working for me. I use other DW scripts (through Tampermonkey on Firefox), but for some reason this one doesn't seem like it's triggered when I go to a DW page. Usually when I'm on DW, I can click my little Tampermonkey icon and it will show all the scripts I have running that apply to DW, but this one isn't showing up in that list, even when I specifically go to a Top-Level Comments view of a DW page.

Any idea what I might be doing wrong?
snickfic: Buffy looking over her shoulder (Default)

[personal profile] snickfic 2022-09-27 03:42 pm (UTC)(link)
Okay, I tried turning off the scripts and reloading the page, but that didn't cause this script to run or appear in my list of scripts for the page. It is listed on my Tampermonkey dashboard, though, as installed and active. It seems like Tampermonkey just isn't recognizing which pages the script applies to.
snickfic: Buffy looking over her shoulder (Default)

[personal profile] snickfic 2022-09-28 01:44 am (UTC)(link)
Hey hey, it works! Thank you so much for the customized fix. :)
trobadora: (Default)

[personal profile] trobadora 2022-09-27 06:23 pm (UTC)(link)
This is great, thank you! :D
arcanetrivia: Delgado!Master throwing horns with text "Rock on!" (approve (master rock on))

[personal profile] arcanetrivia 2022-10-06 10:28 pm (UTC)(link)
Oh that works an absolute treat. Thanks so much!