Obsolete: Install and source links are dead. Script was written for much older version of the sites.


for drafts for edits


This is a simple Greasemonkey script which adds Save and Clear buttons for use when composing question/answer drafts. Otherwise when editing a post, it checks for updates from concurrent edits. As an added bonus, the Save hotkey (Ctrl+S) returns along with a Clear hotkey (Ctrl+Backspace) and a "Return to Question" link has been added when editing questions, useful if you want to open the question in a separate tab after having started editing.

This is an alternative implementation of the script found here from which the code was inspired by. It unfortunately didn't handle certain use cases well, this aimed to improve on it.

There are primarily 2 aspects of the original script that I wanted to improve on:

  1. Control when the links would be included and what type of link it was.
    You can save drafts of new questions or answers but not when edits are made as far as I can tell. So the appropriate link names are used for each view.
  2. It was impossible to clear the contents until you pressed a keyboard key within the editor.
    This will simulate a key press prior to attempting to save or clear so the changes go through.



Written for and tested on Firefox 4.0 on Windows 7. I will be trying to maintain compatibility with Chrome in future releases. Specifically on Chrome 11.0 on Windows XP. Hopefully combinations of either browser and OS will still work.


Please use this page as means of contact. This is part of a personal learning exercise using Javascript so support will be limited as I have no practical experience with it. Feedback and improvement suggestions would be appreciated.


This will be part of a larger project which is a collection of scripts to enhance Stack Exchange if and when I figure out how to do it.

  • I'm the author of the original script and I would love to hear what improvements you've made :) Apr 30, 2011 at 23:01
  • @George: I have included the "improvements made" in the description. Apr 30, 2011 at 23:22
  • Updated: Added hotkeys! May 3, 2011 at 22:24

2 Answers 2


Doesn't work on Chrome (don't think it works on any browser). The beat function is no longer in heartbeat but hidden in StackExchange.cardiologist

  • Yeah it's been broken since they've revamped the question pages. I haven't had the chance to update it. Thanks for pointing out the change, hopefully the fix will just be a matter of changing those variables. Mar 26, 2012 at 13:33

I'll use this answer to keep track of progress such as bugs and plans. That way it will be able to keep everyone up to date on the progress.

Acknowledged Bugs

  • Does not work on other browsers like Chrome (fixed)
  • Ctrl+S keyboard shortcut not working on Chrome. (fixed)

Future Plans

  • Add keyboard shortcuts for these links (implemented)
  • Add delays between consecutive save/clear attempts (implemented)
  • Remove links when saving is not possible (implemented)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .