disprove: (Default)
disprove ([personal profile] disprove) wrote2012-01-05 02:46 pm

userscript: livejournal - show subject field

title. Livejournal - Show Subject Field
browsers tested. Chrome & Firefox
description. Shows subject field in Livejournal's new default comment pages.

  • If you are using Firefox, you will need the Greasemonkey add-on to run this script. If you're a Chrome user, there's no need for it.
  • But don't get too smug yet, Chrome users (which I am one, I admit). Unfortunately, there is a problem in the alignment of "Subject:" and the input field in Chrome when a post has ?mode=reply or ?replyto= in its URL. I tried to fix it within the script itself, but I just gave up and adjusted the damn thing with this Stylish script I made before (and if you already have it, be sure it's version 2.4.2 or higher since the fix for the subject field misalignment in Chrome has only recently been added). That said, if you don't want to use the userstyle, that's okay -- the subject field is still functional either way.
  • While this script does allow you to enter a subject, it will not put the subject line back in the header where it used to be. Rather, it will remain bolded and be placed as the first line in the text of your comment under the blue comment header. That's just how Livejournal displays a subject line these days whether in old or new comments. Now, if you want to see it back up there, the userstyle I linked to above makes that possible.
  • The subject field no longer automatically contains Re: [Subject of Previous Comment] when replying. I think you'll need additional code for that, and I... don't know what that would be.
  •  And just in case anyone asks: subjects entered with this script will still show up in your LJ inbox and in email notifications.

So there! Now go have some indecent fun with your subject fields.

ETA: (01/06) Whoops, I noticed that the code was affecting custom comment pages as well, instead of just the ones in the new default design. Specifically, the subject field was being moved to the right when that behaviour should've been occuring only in default comment pages. Sorry! I've updated the script so it should be fixed now. And if you're using Chrome and the userstyle Release 88 Tweaks, better update that as well (you should have at least v.2.4.2 or higher) 'cause I made a mistake there, too. *facepalm*
ext_3740: the libertines > carl barât (fuuuUUUU--)

[identity profile] disprove.livejournal.com 2012-01-06 07:10 am (UTC)(link)
Woohoo, I won something! \o/ Now these internets, I can sell them, right? ;)

You're welcome!