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.

notes.
  • 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*

Thank you!

[personal profile] autumnrain 2012-01-05 04:45 pm (UTC)(link)
How wonderful, you've done something LJ reckoned couldn't be done! Thank you very much ;w;
ext_3740: the libertines > carl barât (let sleeping dragons lie)

Welcome!

[identity profile] disprove.livejournal.com 2012-01-06 06:41 am (UTC)(link)
Glad it worked for you and thanks for taking the time to leave a comment!

something LJ reckoned couldn't be done

Pfft, it's really not that they *can't* do it, it's just that they *won't*. The subject field has been here all along, they haven't removed it, they had just set the damn thing to hide. I guess in a roundabout way, we should be grateful that they hadn't gone to the trouble of removing it, otherwise this script of mine wouldn't work. Of course, we wouldn't have needed a script in the first place if it weren't for them either. -_-;