foxfirefey: A series of interconnected dots in the shape of an M. (memewidth)
foxfirefey ([personal profile] foxfirefey) wrote in [site community profile] dw_nifty2009-09-03 08:30 pm
Entry tags:

Dynamic and persistant DW reading/network page expand/collapse/hide

I come bearing gifts for your kind alpha testing, [site community profile] dw_nifty! This Greasemonkey (a Firefox extension) was made at [personal profile] niqaeli's request. It's for dynamically collapsing and expanding entries on your reading and network pages (and other journals, too). What's more, the script will remember your options between page loads.

You can install the script here: DW Post Expand/Collapse/Hide. Please test it for me!

The controls are added to the end of each entry's title, and by default are (+) for expand, (-) for collapse, and (x) for hide.

It only works with core2 styles--that is, if you've imported a style from LJ, it won't work on that. But it should work for all Dreamwidth styles that aren't Zesty White. Fortunately, more and more core2 styles are getting added to Dreamwidth every code push.

Additionally, on occasion every few weeks or months or so, you probably want to empty out all the saved values so you don't clog your browser up with them. The commands for doing that are in Tools -> Greasemonkey -> User Script Commands.

If you're adventurous, there are some options at the beginning of the script designed to be edited for different effects and behavior including:

* Which classes in the entry get hidden when it is collapsed.
* Whether entries are collapsed or expanded by default.
* The text of the collapse/expand and hide action links, and their bracketing.

Future planned features include:

* Add flagging posts for later attention
* Add autocollapse (or autoexpand) for listed journals
* Add autocollapse for Twitter posts