imc

Greasemonkey!

May 23, 2008 12:54

LiveJournal Thread Expander with Expand All
http://userscripts.org/scripts/show/27128
I've hacked up a Thread Expander script for Greasemonkey. It has only been tested on a small number of layouts, but it seems to work for me so please bang on it and report any breakages here.

For recent updates see below. What does it do?
We've all ( Read more... )

computers, lj

Leave a comment

Comments 43

7rin May 23 2008, 14:12:01 UTC
Don't know why, but I just can't take to GreaseMonkey, which means it's probably a good job I use LJA**O*s instead.

You did make me LOL with "probably the only person in the world who browses with Greasemonkey enabled and JavaScript disabled", but I suspect you're wrong - you can't be the only nutter in the world. ;)

Reply

imc May 23 2008, 14:22:20 UTC
Don't know why, but I just can't take to GreaseMonkey

Oh well. It demonstrates my LJ + Geek credentials though, no? ;-)

probably a good job I use LJA**O*s instead.

Um. What??

I know, it's probably a Firefox extension. I don't do Firefox extensions, because I use SeaMonkey - which brings me to…

you can't be the only nutter in the world.

Still sure? :-)

Reply

bopeepsheep May 31 2008, 21:45:07 UTC
I use SeaMonkey. So you definitely aren't the only nutter...

Reply


In opera... ext_72852 May 23 2008, 21:07:51 UTC
... save as .user.js to clue opera in to greasemonkey notation
(in particular, make the js run after the page has finished loading)
... have user js which supplies GM_ functions for opera
(maybe only needed for the GM_log debugging)
... top-level 'return' is a syntax error, I replaced with 'exit'
... unsafeWindow is a greaseMonkey object, replace instances with 'window'

seems to be working now. Ace.

(can we have a 'collapse again' in V2?)

Reply

Re: In opera... imc May 5 2009, 15:11:35 UTC
A year late, but I've tried to incorporate the above points in the current version of the script.

As for V2, I guess that's a long way off. ;-)

Reply

Re: In opera... msree May 7 2009, 01:43:27 UTC
There's one line that trips up Opera, otherwise it works nicely. It's this one:
if (info == undefined) return;

I changed return to exit and it works great, no JavaScript errors, even on Dreamwidth! It does need the gmfunctions helper script, like most scripts that weren't written especially for Opera.

Thank you so much!

Reply

Re: In opera... blandinavian November 13 2009, 16:35:13 UTC
Okay, so way late, but I just wanted to say thanks for posting this comment! Couldn't get it to work even after the gmfunctions-file I found somewhere else, but return -> exit, and it works like a charm!

Now if only Opera would be a bit quicker at this whole thing and not fail when the site gets too long... But it's not like I'll switch browser anyways, they've got me hooked.

Reply


weaverandom April 25 2009, 07:20:10 UTC
This looks awesome! Does it work on JournalFen and/or Dreamwidth etc?

Reply

weaverandom April 25 2009, 07:20:39 UTC
(obviously, I mean if one adds JournalFen.Net etc to the list of sites to apply it to.)

Reply

imc April 26 2009, 00:43:48 UTC
I have no idea whether it works… why not try it and see?

It depends on how much those other sites have tinkered with the comment-displaying code and what their styles are like. I don't know, since I don't have accounts on those sites (and of course Dreamwidth wasn't a reality at the time when I posted this code).

Reply

nostariel May 3 2009, 07:04:31 UTC
Sadly, it does not seem to work. Which suuuucks, as I don't yet have a paid account over there.

ETA: Works on the ?format=light pages, w00t!

ETA 2: Also on site-style pages, yay!

Now if it only worked one the custom comments pages, which all the styles seem to default to...

Reply


rinaldo May 4 2009, 16:31:11 UTC
Great Script! Thank you!

"Expand all" function unavaiable on some journals, maybe it depends of a style used.

Reply

imc May 5 2009, 15:09:38 UTC
It does depend on the style used. If you can give me examples of pages that don't work (they have to be publicly accessible, obviously) then when I have time I'll try to incorporate that style.

Reply


tavella August 22 2009, 21:15:34 UTC
Oh, thank you! My old unfold all addons had stopped working.

Reply


Leave a comment

Up