72

Looking for Maintainer

I have not had the capacity to maintain this project in any meaningful way, but the source code is quite clear and reasonably well documented. If you would be interested to maintain this project, please apply on GitHub via an issue.

This project has currently fallen so behind Stack Exchange, that it currently doesn't do anything useful. Former description follows:


There's been an onslaught of rather difficult to read questions on SO lately. A lot of them are just plain close-fodder, but many are just from d ppl ,who spk teh internetz lingo and hence make my eyes bleed are pretty much incomprehensible without extensive parsing/editing. They also somehow do not manage to grasp basic markdown. Now manually editing all these answers can often be a massive pain, so I wrote this extension.

Screenshot

It adds a few more buttons to the SE edit pages (so no distractions when just posting) that aid in making these sites awesome.

Autocorrect

This is the main tool of the suite. It is in fact a huge collection of regexps that correct the most common mistakes people commonly make on SO. These include (see the source for full details):

  • correcting capitalization (how do i do jquery. help. => How do I do jQuery. Help.)
  • correcting use of apostrophes (im cant hasnt => I'm can't hasn't)
  • correcting basic punctuation (what ? how.does......this => What? How. Does... This)
  • deleting unnecessary greetings or signs of gratitude

Note: These are Regexps, not any smart NLP so check the post so that you don't screw anything up. For that it provides:

Realtime diff

There's a handy link provided that toggles between the realtime preview and a realtime diff of your changes and the original version. All of the automated functions also automatically display the diff after execution.

Lowercasing

Sometimes people JUST CAN'T HELP SHOUTING! There's a handy button that converts selected text to lowercase, or finds sequences of shouting and lowercases them automatically.

Search & Replace

Sometimes a simple regexp can fix a lot of problems instantaneously. Click on the search button and get the Search & Replace interface:

Screenshot of Search & Replace

JS regexp support. Did I mention insta-diffing?

Code-sanetm

Sometimes people Copy-paste their code and it gets all messy. This replaces tabs with four spaces and realigns all code to the four space offset, making reformatting it a breeze. Also autoindents C-like languages to further ease the pain.

Where can I get it?

Note: I no longer have the resources to maintain the suite. I'm sure that making this a working user script would not take too much effort so pull requests with fixes are most welcome.

Gotchas

  • Autocorrect and Lowercase ignore code so be sure to mark stuff as code before you apply them.
  • Autocorrect also applies to the title of the post, be sure to check that as well.
  • Filenames sometimes get autocorrected. Mark them as code or correct them back (some common extensions are checked for, but this is by no means comprehensive. If the post is full of filenames, consider not using Autocorrect).

Version History

  • 1.1.0 released 16/3: Fixes a few bugs, adds support for C-like languages to Code-sane, adds quite a few product capitalizations and some determiner handling (an hash a apricot => a hash an apricot).

BTW does the auto-update system work?

Wicket
  • 227
  • 9
Jakub Hampl
  • 831
  • 7
  • 9

8 Answers8

27

Deprecated.

I'm afraid I've sort of abandoned my UserScript conversion of this extension. It was quite buggy and extremely difficult to debug. It would take less effort to write a UserScript version from scratch. – George Edison♦ Dec 20 '11 at 0:51

See new script here Stack Exchange Post Editor - Performing Basic Corrections on Posts Automatically


I quickly adapted this into a UserScript which you can get here:

http://files.quickmediasolutions.com/userscripts/edit_tools.user.js

An automated build can be obtained here:

http://quickmediasolutions.com/repos/output.user.js

The above script is automatically generated every 24 hours from the GitHub repo.

Nathan Osman
  • 23,286
  • 11
  • 60
  • 107
14

Bug report: Inline editing breaks this :-(

Sathyajith Bhat
  • 455
  • 3
  • 13
8

Bug report:

Using George Edison's UserScript version. FF4.0 windows Vista - nothing shows up in the toolbar. The same installation on chrome (10.0l.648.204) is intermittent - sometimes the buttons show up and sometimes they don't.

2

I just installed the latest userscript version and I don't get a toolbar for Super User or Stack Apps. Server Fault and Stack Overflow do work. I haven't tried any others.

Dennis Williamson
  • 896
  • 1
  • 5
  • 11
1

Feature request:

Make the case-change button do a three way toggle: lower, title and upper (probably in that order).

lower case
Title Case
UPPER CASE

There are occasionally legitimate needs for all caps.

Dennis Williamson
  • 896
  • 1
  • 5
  • 11
0

Bug report:

Using George Edison's UserScript version Replace & Find doesn't update the diff, but Replace All does. I don't know if this applies to the original version or not.

Dennis Williamson
  • 896
  • 1
  • 5
  • 11
0

Bug Report:

It doesn't seem to work on StackApps. I don't get the added buttons in the toolbar.

As always, I'm reporting this against George's version without knowing whether it applies to the original.

In case I haven't said it already:

Thanks Jakub and George!

Dennis Williamson
  • 896
  • 1
  • 5
  • 11
0

Bug Report: (using George Edison's UserScript)

Diff ignores changes in whitespace, making indentation changes fairly invisible.

Hasturkun
  • 101
  • 2