Quick-load Dreamwidth comment pages

Loads top comments from all pages and threads in any Dreamwidth post into a single page

Skaber
rallamajoop
Daglige installationer
0
Installationer i alt
37
Bedømmelser
0 0 0
Version
1.11
Oprettet
26.09.2022
Opdateret
28.09.2022
Licens
MIT
Gælder for

For Dreamwidth posts with multiple pages, this makes it possible to load the top comments of each thread on all pages into one page. Useful for anyone who wants to scan quickly through multiple pages or run text search for particular keywords in one place, without having to separately click and load each individual page of comments.

By default*, the script runs only when the user has selected the 'Top-Level Comments only' link on any DW post (or added ?view=top-only to the URL, to the same effect). 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).


(* If you know what you're doing, of course, you could easily modify the script to load threaded or flat-view comments in the same format, but loading times are going to get ridiculous pretty quickly that way, and threads are still not guaranteed to behave on later pages.)