Hot answers tagged

25

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 ...


14

Bug report: Inline editing breaks this :-(


10

Inheriting indention when pressing enter What I'd like to suggest is that if you press enter, the indentation is copied from the line you're coming from, and then automatically put before the next line. This would make it a bit easier to type out code on SO. Of course this would create the problem that people who would want to end their code would be ...


8

Why not use this to add the button? It preserves the integrity of other buttons, and ensures that a button does not get added twice (for example, when in the review section, it will only add the buttons to the editors which don't have it. //params: text: text of button //params: callback: a function which takes id of textarea as argument(useful in review ...


6

Markdown. While you could use HTML (just like you can in posts), each time you use HTML instead of Markdown to format a post, Evan Carroll rapes a little kitten and sticks another needle in his Jeff Atwood voodoo doll.


5

This doesn't have anything to do with Stack Exchange pages, it's a browser thing and mostly a very good thing. You can see that the page isn't doing it by: Disable all javascript on your browser. (Re)load an appropriate Stack Exchange page (or any long page with a <textarea>). Focus the textarea for keyboard input but use the mouse to scroll it out ...


4

Okay, went ahead and banged out a script for this; Happy Christmas! To install, click here (SE Edit Reasoner install at Github). To preview the source, click here (SE Edit Reasoner preview at Github). This userscript requires an engine that supports both @require and the various @granted APIs. It was tested on Firefox + Greasemonkey and Chrome + ...


4

Place to dump list of all mathjax sites. I will take a look at these and determine which configuration to give to each one, and if they need extra buttons. http://stats.stackexchange.com Dollars (Implemented 1.0.3) http://meta.stats.stackexchange.com Ditto http://math.stackexchange.com Dollars only(implemented) ...


3

It would be nice to have a script option to adjust the indentation size. I, for one, would probably find an indent size of two spaces helpful. (Many questions I'm editing to correct indentation are not aligned nicely on four-space indents.)


3

Planned Features Dialog to upload images using imgur directly from the WYSIWYG editor (currently have to use SE's image button on the original editor!) Better design Better support for <code> tags Keyboard shortcuts for common buttons Adding features from my Stack Exchange Editor Extra: a userscript to add extra features to the Markdown Editor ...


3

This uses the jQuery .on(...) feature which is only available in 1.7 and up. Careers is still using an older version and you get an exception on every page right now with this installed. We will be updating soon, but it would be nice if you could add a config page to turn it on/off for each site.


2

// Provide quick documentation links in Stackoverflow editor // // ==UserScript== // @name SO doc shortcuts+ // @description Adds extra buttons to turn selected text into online manual links // @version 0.1 // @namespace data:,00000000000000000000000000000000e3272d8553c99672fa541449b491dd05 // @include ...


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.


2

Full list of supported buttons: Buttons used in many sites Dollarify ($) Encloses selection in $...$ Enabled on all supported sites Keyboard shortcut: Alt-M Works differently on electronics.SE (gives \$...$\ because these people talk about money as well and mathjax needs escaping) Double Dollarify ($$) Encloses selection in $$...$$ Enabled on all ...


2

There should be a StackExchange method you could hook into, but I don't see it. Also, post text can change for a few reasons. (The user finished an edit, or clicked on a snippet button, or clicked on one of those "This post has been edited" alerts, or triggered a spoiler, etc.) To keep things simple and robust, I recommend just using an interval. EG: var ...


2

The markdown code supposedly lives at the pagedown project on code.google.com. (Reference) You may also find these files to be useful: The commented, human readable version of wmd.js The commented, human readable version of full.js Personally, I find it easier to just use normal <textarea> processing followed by a call to ...


2

I'd like to report a bug. I think I pointed that out already earlier, but since we are at version 3 now I thought I give it another try. (I have no idea about scripting this in the first place.) Buttons and preview disappear when running the script. Here is a screenshot to illustrate the problem: I am running it on Windows 7, Chrome 41.something with ...


2

You're abusing a browser action button. If you want to have an option page, just define it in your manifest as an option page. What you have now is an option page hidden behind a browser action button... :S Try updating the css live. Not sure how your code works, but it makes it far easier to understand what various features do and if you're properly saving ...


2

This is either a bug or an incomplete feature. See: What is the 'rev' dropdown supposed to do? Stack Exchange Revisions Dropdown Does Nothing? This extra dropdown seems to require: That the post have had previous edits. That the page mode editor is invoked. This editor is the default for low-rep users under at least some conditions. (low rep ...


1

Here is another solution that has been brought to my attention recently: Use Stackedit and this allows you to see the rendered output and the text input simultaneously. Furthermore, you can minimize the text input box to such an extent that it barely is visible at all.


1

I've updated the description to reflect the new version of the userscript. New features in 1.1 Side by side editing can be used when editing existing questions or answers. Can be toggled on and off by clicking the new button again. When turned on the editor is stretched to the current length of the preview.


1

"How are supposed to find this page?" There is a link to the page for registering an application on Stack Apps directly on the site home page:


1

The way SOUP handles this is by using a jQuery .ajaxComplete handler to detect when new content is loaded dynamically. SOUP actually has a set of wrapper functions that encapsulate this functionality, but here's a simple stand-alone example from this script, which I originally wrote for SOUP but decided to also make available separately: // re-run the ...


1

Here's a Greasemonkey / Tampermonkey script that'll run a stop watch until an edit reaches 5 minutes of age. Give it a try and see what you think. It might have bugs, but it's close enough for government work I think. (That's a United States idiom meaning it has the mediocre quality one might expect from the lowest bidder, but it works well enough.) Bear ...


1

last_editor will be missing (empty) from the results when the last editor is a deleted user. This deleted user does not have to be the owner, or original poster, of a given question or answer. For example, see this answer -- which looks like this in the API: { "owner": { "user_id": 362168, "user_type": "registered", "display_name": "Saqueib" ...


1

Great script! However, I've got a bug report: On Electrical Engineering, where the $ button creates \$ braces (thanks for that exception, by the way), the SansSerif button still creates $ braces, which do not work. I'm not sure what makes the Sans Serif font look so bad, it may be an issue with the configuration on my machine. Don't worry about that, ...


1

Meta-notices for this: (just for me to keep track) http://meta.physics.stackexchange.com/questions/1233/math-and-si-formatting-buttons http://meta.chemistry.stackexchange.com/questions/70/mathjax-formatting-buttons-for-you http://meta.math.stackexchange.com/questions/4111/mathjax-formatting-buttons-for-you-guys ...


1

Version history: 1.0 1.0.1: Fix the \ce{} highlighting bug. It now highlights properly even when you haven't selected anything. (Makes it useful to just hit Alt-C/whatever and start typing the formula) 1.0.2: Add electronics.SE (with config $,$$,SI--special treatment of $ due to EE.SE requiring backslashes). Also crypto.SE (config $,$$, O--big O notation) ...


1

I've added a fix to point 3 over here (it's forked) It deals with <kbd>[selected text]</kbd> and [<kbd>text</kbd>], where the [] denotes selection. It will not deal with wierd stuff like <kb[d>text</kbd>]. (Could be done using regexes)



Only top voted, non community-wiki answers of a minimum length are eligible