Sophie - LJ comment preview Greasemonkey script
browse
my journal
September 2016
 

Date: 2011-12-23 02:27
Security: Public
Mood:happy happy
xposthttp://soph.livejournal.com/227512.html
Tags:dreamwidth, greasemonkey, livejournal
Subject: LJ comment preview Greasemonkey script

[this is a public post on LJ]

I don't tend to do new stuff explicitly for LiveJournal nowadays, since I'm on Dreamwidth, but LJ came out with an interesting claim recently regarding the lack of a Preview button on the new commenting form:

Since a Preview button isn't easily/quickly possible with the new form, we have made the ability to edit comments available to all account types.
I was honestly a bit baffled by this, because it's actually really easy to add a Preview button. In fact, I knocked up a Greasemonkey script to add one in less than half an hour, and I've never previously touched the new commenting code. (Download here. Greasemonkey script has been tested on Firefox and Chrome; if anybody else knows if it works on other browsers, let me know! To run it on Firefox, you'll need the Greasemonkey add-on. Chrome users don't need any separate addon!)

But at the same time, I don't think LJ are deliberately and shamefacedly lying, because allowing all users to edit comments is going to put a dent in their bottom line. Lots of people find the ability to edit comments incredibly useful, and there's now one less reason for people to have paid accounts.

Rather, I suspect the reason they're not introducing the Preview button on the new form is because the Preview page includes a subject line field, and they seem to be doing their best to want to get rid of subject lines. (Don't ask me why, I have no clue.)

Anyway, I mainly made this post to get this Greasemonkey script out there, because as much as I'd love people to come to Dreamwidth, there are some people who aren't going to want to do so, and being able to preview comments is kind of important. That said, if you do read this, do consider giving Dreamwidth a try. You don't even need an invite code if you sign up before the end of the year, because DW have opened up the create flow for a limited period of time. So come on over and give it a try. :)

[edit (Dec 23rd): I updated the code as there were some cases when the code would pop up a "No can do." message box - if the page wasn't using the new commenting scheme. Please download the new version.]

[edit (Dec 24th): I've learned that [livejournal.com profile] stuntpilot99 has made a Stylish style that makes LJ a bit easier to read by replacing the fonts with the fonts used before, slightly widens some margins, and other things. It also puts a soft grey background on everything, but as I don't like that myself, in the version I've got installed I edited it and replaced every instance of "#f7f7f7" with "#ffffff", which makes it white. In any case, go check it out. :)]

Post A Comment | 28 Comments | Add to Memories | Tell Someone | Link



AriadneElda
User: [personal profile] ariadneelda
Date: 2011-12-23 13:22 (UTC)
Subject: (no subject)

Hello, here via network.

Preview button Greasemonkey script? That's awesome!

The irony is that I'm one of those Firefox users who are unable to post comments with the new comment form on LJ and I just found out this morning it was my Greasemonkey add-on causing the conflict. So I had to temporarily disable it (and I miss it so much!) until they finally fix this problem. But I'm saving your post to memories to come back and get the script then - thank you! :)

ETA: Oh, do you mind if I link to this?

Edited 2011-12-23 01:24 pm (UTC)

Reply | Thread | Link

Sophie
User: [personal profile] sophie
Date: 2011-12-23 13:39 (UTC)
Subject: (no subject)

Link away! :D

As for the Greasemonkey thing, you don't need to disable the entire addon. If you go to the Addon Manager and look at the User Scripts tab, each script listed there will have a "Disable" button of its own, which can disable it independently of the others.

You can also do this more quickly by adding the Greasemonkey button to a toolbar; when you click on the arrow, a menu will appear that (among other things) lists all the scripts that apply on that page, and you can tick/untick scripts from there to enable or disable them.

In either case, you then need to refresh the page before the script will be fully disabled.

Reply | Parent | Thread | Link

AriadneElda: BSG: Starbuck - yay!
User: [personal profile] ariadneelda
Date: 2011-12-23 14:30 (UTC)
Userpic:BSG: Starbuck - yay!
Subject: (no subject)

OMG, I did what you said and it was the script for removing the Facebook and Twitter connect options; I disabled that and added the preview button script and now it all works perfectly! Thank you, thank you!! :D

Reply | Parent | Thread | Link

Sophie
User: [personal profile] sophie
Date: 2011-12-23 14:58 (UTC)
Subject: (no subject)

I'm glad it helped! :D Normally when something conflicts with Greasemonkey, it's not Greasemonkey itself that's the problem, but a Greasemonkey script. I'm glad you managed to get it fixed. :D

Edited 2011-12-23 03:00 pm (UTC)

Reply | Parent | Link

Shelly
User: [personal profile] sdk
Date: 2011-12-23 16:18 (UTC)
Subject: (no subject)

This is incredibly helpful. Thank you!

Reply | Link

djin7
User: [personal profile] djin7
Date: 2011-12-23 16:41 (UTC)
Subject: (no subject)

Thank you!

Reply | Link

Marc: you're my honeybunch,sugar plum
User: [personal profile] batons
Date: 2011-12-23 19:12 (UTC)
Userpic:you're my honeybunch,sugar plum
Subject: (no subject)

This helps a lot. Thank you for making this!

Reply | Link

User: [personal profile] autumnrain
Date: 2011-12-23 19:32 (UTC)
Subject: (no subject)

I was directed over to this from LJ and I have to say, thank you! I write some long comments occasionally and this will be very useful!

Reply | Link

this_girl_is: Flails
User: [personal profile] this_girl_is
Date: 2011-12-23 20:06 (UTC)
Userpic:Flails
Subject: (no subject)

Thank you so much, that is SO HELPFUL.

Reply | Link

User: (Anonymous)
Date: 2011-12-23 21:28 (UTC)
Subject: Here via Snegurochka_lee via Ariadneelda

Many thanks! I'm not good at techie stuff, but managed to do this and it works! Not being able to preview and spell-check is the main reason I hate the changes LJ's made. One thing less to worry about now.

Reply | Thread | Link

gaycrow
User: [personal profile] gaycrow
Date: 2011-12-23 21:29 (UTC)
Subject: Re: Here via Snegurochka_lee via Ariadneelda

Ooops, sorry, I wasn't logged in.

Reply | Parent | Link

kay_tee: Heart-sky
User: [personal profile] kay_tee
Date: 2011-12-23 23:45 (UTC)
Userpic:Heart-sky
Subject: (no subject)

Came across a link here in the lj_releases comm, thank you so much for putting this together, I really missed the preview button.

Reply | Link

User: (Anonymous)
Date: 2011-12-24 00:27 (UTC)
Subject: (no subject)

Thanks a lot from a LJ-user! My name there is aglaiya.

Reply | Link

Tephra: Kitty Hugs Bear
User: [personal profile] tephra
Date: 2011-12-24 02:39 (UTC)
Userpic:Kitty Hugs Bear
Subject: (no subject)

Thank you. :)

Reply | Thread | Link

Sheena Fujibayashi
User: [personal profile] ninjainviolet
Date: 2011-12-25 07:44 (UTC)
Subject: Has absolutely nothing to do with this thread...

But I love that icon. :D

Reply | Parent | Thread | Link

Tephra: Kitty Hugs Bear
User: [personal profile] tephra
Date: 2011-12-25 16:41 (UTC)
Userpic:Kitty Hugs Bear
Subject: Re: Has absolutely nothing to do with this thread...

It's totally take-able if you want it. :) I cut it down from an animated gif I found on Daily Squee.

Reply | Parent | Link

gehayi
User: [personal profile] gehayi
Date: 2011-12-24 04:22 (UTC)
Subject: (no subject)

Oh, thank you! This is a lovely Christmas present; I used to have a Greasemonkey script when I was on Firefox, but it wouldn't work with Chrome at all.

Reply | Link

ladyminya: [brando] - pensive
User: [personal profile] ladyminya
Date: 2011-12-24 04:53 (UTC)
Userpic:[brando] - pensive
Subject: :)

Thank you so much for sharing this. It will come in handy in the future when they've removed all functionality from the s2 style comment pages, which I have been forced to use as a result of the recent roll outs.

Reply | Link

User: [personal profile] ex_niklaus950
Date: 2011-12-24 06:14 (UTC)
Subject: (no subject)

thanks!

Reply | Link

automaticdoor
User: [personal profile] automaticdoor
Date: 2011-12-24 09:36 (UTC)
Subject: (no subject)

This is super handy! Thank you so much!

Reply | Link

stuntpilot99
User: [personal profile] stuntpilot99
Date: 2011-12-24 10:17 (UTC)
Subject: (no subject)

Hi, I linked across to you!

I have a quick n dirty Stylish script that fixes up font, blue border on add a comment button, rollover hover on buttons, and adds a gentle grey background. Much easier on the eyes.

It's over on my LJ journal: Reduced eye strain LJ :)

Still no subject of course, but it's a good start.

You might want to link back.

Reply | Link

I joined the Rebel Alliance ironically: angel lilah thumbs up
User: [personal profile] morwen_peredhil
Date: 2011-12-24 18:24 (UTC)
Userpic:angel lilah thumbs up
Subject: (no subject)

Thanks so much!

Reply | Link

Sheena Fujibayashi
User: [personal profile] ninjainviolet
Date: 2011-12-25 07:45 (UTC)
Subject: (no subject)

Thank you so much. I don't have Greasemonkey yet, since I saw no need for it, but now I see a need.

Now if only you could help them fix the mobile problems...LOL

Reply | Link

organic magic wraps around: .peek.a.boo.
User: [personal profile] organicmagic
Date: 2011-12-25 10:13 (UTC)
Userpic:.peek.a.boo.
Subject: (no subject)

Thank you for this. It'll make LJ life less headachey!

Reply | Link

Jewelfox
User: [personal profile] jewelfox
Date: 2011-12-26 21:18 (UTC)
Subject: (no subject)

I personally don't use the subject line for comments ... I don't really look at it either, it just sort of blurs in with the metadata for me. I had to scroll up and look to see that like three people had added subject lines to theirs.

I might hide the field by default or something, then make it stand out more on the page where comments are displayed, but only on comments that have one.

I wouldn't disappear it all of a sudden with new UI stuff sprung on people out of nowhere. >.>

Reply | Link

User: (Anonymous)
Date: 2011-12-27 14:14 (UTC)
Subject: (no subject)

Thank you so much for this, I live for the preview button on the comments because I usually make mistakes, and editing them so many times will get annoying to both me and other people.

Reply | Link

catsintheattic
User: [personal profile] catsintheattic
Date: 2011-12-31 10:42 (UTC)
Subject: (no subject)

(Here via faithwood's link on a post from vaysh11.)

Thank you! That's an awesome help. :-)

Reply | Link

coffeestudies
User: [personal profile] coffeestudies
Date: 2012-04-09 13:56 (UTC)
Subject: (no subject)

Thank you very much! :)

Reply | Link