Peridontal atrium
Jan. 3rd, 2006 11:43 pmThe LJ New Comments script now copes better with the bewildering variety of journal styles that are out there. I also stopped it from giving up in disgust if a style allows it to see the comments but doesn't provide a permanent link to each comment, as the "n" and "p" keys will still work in these styles (q.v.
peacerose's journal, for example).
I'm now using scrollIntoView to move each new comment to the top as you click or press keys, so you don't get a new history entry for each comment you visit (I was annoyed with having to hit the "Back" button multiple times to leave the entry). The docs for Greasemonkey allege that scrollIntoView doesn't work within Greasemonkey unless you do special stuff, but I seem to be getting away with it. Possibly I've broken the script for people not using Firefox 1.5, but such people need to feel the white heat of technology, anyway.
Ph34r my sk1llz!
ETA: Except that I broke it again trying to make it handle all the extra ways of denoting comments. v0.4, now on the userscripts.org site, seems to be working.
I'm now using scrollIntoView to move each new comment to the top as you click or press keys, so you don't get a new history entry for each comment you visit (I was annoyed with having to hit the "Back" button multiple times to leave the entry). The docs for Greasemonkey allege that scrollIntoView doesn't work within Greasemonkey unless you do special stuff, but I seem to be getting away with it. Possibly I've broken the script for people not using Firefox 1.5, but such people need to feel the white heat of technology, anyway.
Ph34r my sk1llz!
ETA: Except that I broke it again trying to make it handle all the extra ways of denoting comments. v0.4, now on the userscripts.org site, seems to be working.
no subject
Date: 2006-01-04 02:12 am (UTC)no subject
Date: 2006-01-09 01:41 am (UTC)no subject
Date: 2006-01-09 09:31 am (UTC)As I mentioned in the earlier entry about the script, I'm not going to make the script work with everyone's customised style, although I am interested in the standard styles. The best thing to do about that page is view it in a style which does work with the script, by appending "?style=mine" (for your own journal's style) or similar to the URL. There's a GM script which will do this for you.
no subject
Date: 2006-01-17 04:43 am (UTC)no subject
Date: 2006-01-17 09:40 am (UTC)