You are viewing markf

[reposted post] Workaround for the grey comment button!

Ever since the new default comment scheme came out last December, there have been scores of people complaining that they've been unable to comment because the button would remain greyed-out and unclickable. Unfortunately, there seems to be no rhyme or reason as to who is affected by this bug so it's been especially hard to fix.

To address this I just hacked up soph's Preview button Greasemonkey script so that you can add an additional, always working comment button to default comment pages. When you install the script it'll look like this:

The new button labeled "Click to comment" is always active so you should be able to submit a comment at any time, even if the standard button (the one labeled "Add a comment") stays grey.

To install the script, visit Userscripts.org and click on "Install". So far this script has been tested on Windows with Firefox and on Mac OS X with Firefox. See the instructions on Userscripts.org to learn how to install this script for Firefox, and this article for Chrome, Internet Explorer, and Safari. If you use this script and it works, let me know what browser and OS you use in the comments.

Note: If you're having difficulty using this as a Greasemonkey script or would prefer to use it as a bookmarklet, [read on.]read on.
To make a bookmarklet simply make a new & empty bookmark in your browser. Name it Clickable Comments, and for the destination/location/URL paste in the following code:
javascript:(function(){if(document.getElementsByClassName("b-watering")){var submitbutton=document.getElementById("postform").getElementsByClassName("b-watering-submit").item(0);var commentbutton=document.createElement("div");commentbutton.innerHTML="<div class=\"b-ljbutton b-ljbutton-submit\"><button type=\"submit\" name=\"submitpost\" tabindex=\"80\">Click to comment</button></div>";commentbutton.style.cssFloat="left";commentbutton.style.marginRight="1em";submitbutton.parentNode.insertBefore(commentbutton,submitbutton);}})();


Then, whenever you get the grey comment button press this bookmarklet and the clickable button will appear next to the inactive one.


Special thanks to Sophie for writing the original script and big props to markf for giving me insight into how the button is supposed to work & figuring out how it was failing.

Nov. 25th, 2003

If you're here, chances are you're looking for support.

If you're not sure how to do something, or are curious about policies, most things are covered at http://www.livejournal.com/support/faq.bml

If you're having problems with the site, or have a general question on how to do something which you cannot find a FAQ for, please go to http://www.livejournal.com/support/

If you're having problems with another user, please see http://www.livejournal.com/support/faqbrowse.bml?faqid=105

Going to these places will give you quicker, and in many cases more accurate responses than I would be able to provide :)

Tags:

Latest Month

July 2012
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031    

Links

Syndicate

RSS Atom
Powered by LiveJournal.com
Designed by Tiffany Chow