This userscript is a revival of sorts for the old SE Editor Toolkit, which was abandoned some time ago.
It only really provides the autocorrect aspect for the foreseeable future, which I find to be quite useful.
It works by injecting a button in the edit window (it works inline for users with full edit privileges and on edit pages for users without them) that corrects common errors based on current Stack Exchange standards and formulates an edit summary based on the changes.
It currently does the following:
- Uppercases lowercase "i"s in posts
- Corrects to proper spelling/capitalization of "Stack Overflow" and "Stack Exchange" in order to fit the legal naming requirements
- Expands "SO" and "SE" to "Stack Overflow" and "Stack Exchange," respectively
- Corrects to proper spelling/capitalization of...
- Capitalizes the first letter of new lines
- Removes common greetings
- Removes "thanks" and similar phrases
- Removes "Edit:" and similar modifiers
- Replaces the now-banned mysite.domain with example.domain
- Fixes improperly used contractions
See something you don't like? Want to add something?
Well, the toolkit is easily expanded/modified. Rules are in the following format (located in the
replacement: "What to replace it with (may include captured text like $1)",
reason: "an unpunctuated reason starting with a lowercase letter that will be formatted automatically and inserted into the edit summary"
Click here for a direct download of the current version.
The code is available on GitHub (feel free to make pull requests with new rules if you're into that sort of thing).
Please post reports of bugs/strange behavior on the GitHub page as an issue or here as an answer or comment.
A Note of Warning
One last thing: as this script is entirely based on loosely-constructed regular expressions, it may have unexpected behavior. While I haven't encountered anything too terrible, kindly understand that I am not responsible for any damage caused to posts by its usage and always make sure to check what the script did before (or right after) you submit your edits.
If you are edit-banned for something this script did, please remember this warning.
(You will be automatically reminded once on each new site you visit where you do not have edit privileges that your edits must pass through a queue and that the script may not fix enough of a post to be accepted.)