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.

(no subject)

[personal profile] lap_otter - 2009-09-04 05:22 (UTC) - Expand

(no subject)

[personal profile] lap_otter - 2009-09-04 06:01 (UTC) - Expand

(no subject)

[personal profile] cesy - 2009-09-04 12:33 (UTC) - Expand

Amen.

[personal profile] babysprite - 2009-09-07 00:44 (UTC) - Expand
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)

(no subject)

[personal profile] medrin - 2009-09-04 15:42 (UTC) - Expand

(no subject)

[personal profile] medrin - 2009-09-07 10:04 (UTC) - Expand

(no subject)

[personal profile] afuna - 2009-09-07 10:41 (UTC) - Expand

(no subject)

[personal profile] medrin - 2009-09-07 11:40 (UTC) - Expand

(no subject)

[personal profile] afuna - 2009-09-07 11:42 (UTC) - Expand

(no subject)

[personal profile] medrin - 2009-09-04 15:45 (UTC) - Expand
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!
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]
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).

(no subject)

[personal profile] artisan447 - 2009-09-06 02:54 (UTC) - Expand

Re: for mobile devices

[personal profile] artisan447 - 2009-09-12 11:57 (UTC) - Expand

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)
owl: Stylized barn owl (Default)

[personal profile] owl 2009-09-07 11:09 pm (UTC)(link)
Awesome! Now I want it for LJ too :D
ninetydegrees: Art: floating cute creatures and hearts (cloud 9)

[personal profile] ninetydegrees 2009-09-16 06:02 am (UTC)(link)
I hadn't realized how truly brilliant this was until I noticed entries I had collapsed stayed collapsed no matter where I was viewing them.

*worships*

(no subject)

[personal profile] ninetydegrees - 2009-09-18 04:32 (UTC) - Expand
ratcreature: Woe! RatCreature feels emo. (woe!)

[personal profile] ratcreature 2009-09-22 11:15 am (UTC)(link)
It doesn't work for me. I installed the Greasemonkey script and I have a core2 theme (Modish), but there are no controls visible.

(no subject)

[personal profile] ratcreature - 2009-09-25 10:56 (UTC) - Expand

(no subject)

[personal profile] ratcreature - 2009-09-25 17:04 (UTC) - Expand
solaciolum: King of Night Vision, King of Insight (Default)

[personal profile] solaciolum 2009-12-16 07:00 pm (UTC)(link)
Oh, wow, this is awesome- I just installed the script, and it's working perfectly. Thank you!
highlander_ii: Chris Pine kneeling on the floor holding a camera to his face (Default)

[personal profile] highlander_ii 2010-01-02 07:11 am (UTC)(link)
I has a query - can this be easily adapted to function with LJ and/or IJ? If it's easy - shiny awesome, if it's not so easy, forget I asked? XD

Btw - this is one of the most awesome GM scripts since the LJ cut expander! *g*

(no subject)

[personal profile] highlander_ii - 2010-01-02 07:24 (UTC) - Expand

(no subject)

[personal profile] highlander_ii - 2010-01-02 07:45 (UTC) - Expand

(no subject)

[personal profile] highlander_ii - 2010-01-02 08:19 (UTC) - Expand
paian: Daniel giving a thumbs-up, caption 'whoo!' (whoo by littlekfru)

[personal profile] paian 2010-02-28 11:04 pm (UTC)(link)
I've been using this script since you first posted it, and at this point I have no idea how I ever lived without it. Thank you so much!!
arduinna: a tarot-card version of Linus from Peanuts, carrying a lamp as The Hermit (Default)

[personal profile] arduinna 2010-06-03 04:57 pm (UTC)(link)
I've been using this script for a few months now, and I knew I loved it but didn't realize just how much until I started working on a new computer and it wasn't there. I actually went "ack!" and raced to install it. <3 Thank you so much!
aedifica: Silhouette of a girl sitting at a computer (Girl at computer)

[personal profile] aedifica 2010-08-16 08:18 pm (UTC)(link)
I have an odd request: when you have time, would you be willing to edit this post so it includes the word "Firefox" somewhere in it? I keep telling people about the add-on, and then they want to try it, and then I try to search the community for this post but I'm usually using "Firefox" as a search term and so it doesn't turn up. (If I were sure it was just me, I'd just deal with it, but I bet I'm not the only person who tries to use that as a search term for this.)

P.S. Thanks again for making this add-on!

(no subject)

[personal profile] aedifica - 2010-08-16 20:26 (UTC) - Expand

(no subject)

[personal profile] aedifica - 2010-08-18 15:39 (UTC) - Expand
kudilu: (Default)

[personal profile] kudilu 2010-10-21 03:06 pm (UTC)(link)
I just installed this, and it seems to work fine for me so far.
I notice that it says there are options to decide some things. does this include being able to keep the post's user icon up on the collapsed post? if so, can you tell me how to do that? it's about the only issue i have - i want to see the user icon, because it's mostly how i identify accounts.

(no subject)

[personal profile] kudilu - 2010-10-22 16:31 (UTC) - Expand

sad

[personal profile] throttlee 2011-08-30 02:05 pm (UTC)(link)
only works for firefox right? I have chrome, it did no effect here
alexseanchai: Katsuki Yuuri wearing a blue jacket and his glasses and holding a poodle, in front of the asexual pride flag with a rainbow heart inset. (Default)

[personal profile] alexseanchai 2013-01-12 10:21 pm (UTC)(link)
I turned on the new comment page beta and now the script runs on entry pages instead of just read and network pages which means any DW tab left from before last browser restart has the entry collapsed and DO NOT WANT.
highlander_ii: Hugh Jackman as Peter Allen shaking his butt ([HughJ] shake it baby!)

[personal profile] highlander_ii 2014-08-16 05:55 am (UTC)(link)
Here is the mirror link for the script if the other one isn't working: http://userscripts-mirror.org/scripts/show/57024.html
niqaeli: cat with arizona flag in the background (Default)

[personal profile] niqaeli 2014-08-16 05:59 am (UTC)(link)
Bless you, I just came here to comment with this for the next time I have to install it and find you've helpfully beat me to it! And lest that mirror site go down, actually, here's the direct link to [personal profile] foxfirefey's remotely hosted copy of the script.
highlander_ii: Chris Pine kneeling on the floor holding a camera to his face (Default)

[personal profile] highlander_ii 2015-06-05 11:29 pm (UTC)(link)
Fey - is this supposed to work when one has sticky posts on their DW page? B/c in my case (and this may be why I went back to DOOO posts), w/ sticky posts, the expand/collapse disappears.
montuos: Ernest H. Shepard illustration of Eeyore with a pot of honey (eeyore)

[personal profile] montuos 2015-10-28 03:19 am (UTC)(link)
Is it just me, or did the script break for anyone else after the Greasemonkey update a couple-three days ago? *cries*