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
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-09-04 04:17 am (UTC)(link)
\o/!!
lap_otter: (Baby Sloth Pink)

[personal profile] lap_otter 2009-09-04 04:55 am (UTC)(link)
* Add autocollapse for Twitter posts
THANK GOD.
lap_otter: (Default)

[personal profile] lap_otter 2009-09-04 05:22 am (UTC)(link)
I don't think I have any on my DW list, actually, but they're all over my LJ list. Although if it would help I will find someone that makes Twitter posts and subscribe to them.
lap_otter: (Default)

[personal profile] lap_otter 2009-09-04 06:01 am (UTC)(link)
You are my hero.

Just sayin'.
medrin: matlab code with everything but 'hold on' blurred (Default)

[personal profile] medrin 2009-09-04 08:00 am (UTC)(link)
I love the idea of this script, but I don't think it's working properly for me.

When I click on the(-) the entry disappears, but it does not reappear by clicking (+). It disappears completely by clicking (x), but I can't get it anything to come back with any of the user script commands.

(Sitting on Windows XP, transmogrified site scheme, I have a few other scripts installed... haven't tried without them yet)
shiny_crystal: picture by Luis Royo (DW)

[personal profile] shiny_crystal 2009-09-04 12:16 pm (UTC)(link)
Wow, this is seriously awesome, and so far it's working fine :) Thanks for sharing!
cesy: "Cesy" - An old-fashioned quill and ink (Default)

[personal profile] cesy 2009-09-04 12:33 pm (UTC)(link)
You can already collapse LoudTwitter posts with custom CSS - instructions by matgb on LJ.
cereta: (babystsp)

[personal profile] cereta 2009-09-04 01:45 pm (UTC)(link)
OMG, yay! I was just wishing for this!
siliconshaman: black cat against the moon (Default)

[personal profile] siliconshaman 2009-09-04 02:03 pm (UTC)(link)
Nice, works fine on my system. [FF3 under Ubuntu 9.04]
medrin: matlab code with everything but 'hold on' blurred (Default)

[personal profile] medrin 2009-09-04 03:42 pm (UTC)(link)
I use version 3.0.13 of Firefox and 0.8.20080609.0 of Greasemonkey, and yes, I refreshed the page after each time I used a user script command.

I disabled the script after I posted last time, enabled it now again and it still can't find my hidden entries.

I haven't had time to test it more than that, and I'm sad to say that since I'm sitting at my work computer and are just about to leave for home, I won't have the opportunity ho help you test it until Monday (I might come in and work a little on the weekend, but have not made up my mind yet).

Are on the other hand definitely going to install this script on my home computer! (but since that computer is a mac with different versions of both Firefox and Greasemonkey the problem are probably not going to reappear there)
medrin: matlab code with everything but 'hold on' blurred (Default)

[personal profile] medrin 2009-09-04 03:45 pm (UTC)(link)
Oh! and I can also add that each time I lick in a (+), the page jumps up to the top! It does not do that when I click on (-) or (x), it just does what it's supposed to do then.
brownbetty: (Default)

[personal profile] brownbetty 2009-09-04 06:04 pm (UTC)(link)
Works for me! Coolio.
isis: (Default)

[personal profile] isis 2009-09-04 08:21 pm (UTC)(link)
The mouseover text for expand/collapse are reversed! I get "expand" over the - and then when I click it and it collapses, I get "collapse" over the +

How do you unhide?
aedifica: Photo of me playing my trombone at the Renaissance Festival (Fest 2008 with trombone)

[personal profile] aedifica 2009-09-04 10:53 pm (UTC)(link)
When I saw this post I thought it was about expanding cut tags for reading on the main reading page, which would also be cool... but when I realized what it actually was, my reaction was "OMG I want this for the tor.com feed!" (The tor.com feed has articles I want, so I keep it subscribed, but it also has the full text of a whole lot of articles I *don't* care about and they take up way too much space on my reading page. I'll have to unsubscribe it on LJ and subscribe it on DW just so I can use this.) So yay and thanks!
artisan447: (Default)

[personal profile] artisan447 2009-09-05 11:24 am (UTC)(link)
Thanks! I'm not getting any mouse-over text for any of the expand/collapse/hide icons. Are you expecting that? (using FF 3.5.2 on Vista).
artisan447: (Default)

[personal profile] artisan447 2009-09-06 02:54 am (UTC)(link)
Sorry, didn't note an exact time (it was a little before I posted here). Would it help you if I uninstalled and reinstalled?

Amen.

[personal profile] babysprite 2009-09-07 12:44 am (UTC)(link)
* Add autocollapse for Twitter posts
THANK GOD.


Oh, it's inCREDible how much Twitterers don't realize just how vehemently annoying it is to have one's F-list brutally murdered by those incoherent and incomprehensible runs of babble.
/\__/\
(='.'=)
(")_(")

Music The Wailin' Jennys - Take it Down

for mobile devices

[personal profile] babysprite 2009-09-07 12:50 am (UTC)(link)
* Whether entries are collapsed or expanded by default.

That will be fabulous for mobile devices where screen space is at a minimum.

Mentioning this, I'm going to poke around DW to see if anyone's working on a mobile DW API or interface. If not, I just might open up a terminal window and crank up my favorite Unix text editor to work up one, myself. Be warned, though. I'm a TTY junkie and everything would be Zen simple and spartan.
/\__/\
(='.'=)
(")_(")

Music Eels - Packing Blankets
Edited 2009-09-08 01:57 (UTC)

Page 1 of 3