# [Github Comment Enhancer](https://github.com/jerone/UserScripts/tree/master/Github_Comment_Enhancer)
[](https://github.com/jerone/UserScripts/raw/master/Github_Comment_Enhancer/Github_Comment_Enhancer.user.js)
[](https://github.com/jerone/UserScripts/blob/master/Github_Comment_Enhancer/Github_Comment_Enhancer.user.js)
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VCYMHWQ7ZMBKW)
[](https://github.com/jerone/UserScripts/issues)
## Description
Add features to enhance comments & wiki on [Github](https://github.com) and comments on [Github Gist](https://gist.github.com).
You can reply to issues, pull requests and inline comments by pressing the reply button on every comment.
Every comment field also got a toolbar, consisting of the following buttons:
* Bold (ctrl+b)
* Italic (ctrl+i)
* Underline (ctrl+u)
* Strikethrough (ctrl+s)
* Headers
* Header 1 (ctrl+1)
* Header 2 (ctrl+2)
* Header 3 (ctrl+3)
* Header 4 (ctrl+4)
* Header 5 (ctrl+5)
* Header 6 (ctrl+6)
* Link (ctrl+l)
* Image (ctrl+g)
* Unordered List (alt+ctrl+u)
* Ordered List (alt+ctrl+o)
* Task List (alt+ctrl+t)
* Code (ctrl+k)
* Syntax highlighting
* Quote (ctrl+q)
* Horizontal Rule (ctrl+r)
* Table (alt+shift+t)
* Snippets
* Tab character
* UserAgent
* Contributing message
* Emoji
* Clear content (alt+ctrl+x)
## Screenshot

## Compatible
* [ Greasemonkey](https://addons.mozilla.org/firefox/addon/greasemonkey/) on [ Mozilla Firefox](http://www.mozilla.org/en-US/firefox/fx/#desktop) desktop.
* [ Scriptish](https://addons.mozilla.org/firefox/addon/scriptish/) on [ Mozilla Firefox](http://www.mozilla.org/en-US/firefox/fx/#desktop) desktop.
* [ Native](http://www.chromium.org/developers/design-documents/user-scripts) on [ Google Chrome](https://www.google.com/chrome/) desktop.
* [ TamperMonkey](http://tampermonkey.net) on [ Google Chrome](https://www.google.com/chrome/) desktop.
* [ Greasemonkey](https://addons.mozilla.org/firefox/addon/greasemonkey/) on [ QupZilla](http://www.qupzilla.com/) desktop.
Please [notify](https://github.com/jerone/UserScripts/issues/new?title=Userscript%20%3Cname%3E%20%28%3Cversion%3E%29%20also%20works%20in%20%3Cbrowser%3E%20on%20%3Cdesktop/device%3E) when this userscript is successfully tested in another browser...
## Version History
* **2.8.1**
* Emoji menu overlaps text (fixes https://github.com/jerone/UserScripts/issues/92);
* **2.8.0**
* Reverted commit 9bf8974 to fix the toolbar on the wiki.
* Included fix for enabling and disabling buttons per language on wiki.
* Also fixes non-working italic button (fixes #83).
* Added clear button back to wiki.
* Moved help button to the right.
* Only execute action when button is not disabled.
* :sparkles: Added dialog when inserting link or image.
* Homepage is now link to userscript readme.
* **2.7.0**
* Fixed Github's name completion (fixes https://github.com/jerone/UserScripts/issues/81);
* Restored using enter key on dropdown menus.
* Fixed emoji text.
* **2.6.0**
* Fixes wrong button styles in gists (fixes https://github.com/jerone/UserScripts/issues/78);
* Fixed modals showing below other elements;
* Added extra button with complete list of all code syntax (closes https://github.com/jerone/UserScripts/issues/18);
* **2.5.1**
* Fixed showing list of all emoji (fixes https://github.com/jerone/UserScripts/issues/75);
* **2.5.0**
* Fixed not running everywhere (fixes https://github.com/jerone/UserScripts/issues/66);
* Better clear button icon;
* Fixed comment form header on inline comments;
* **2.4.1**
* Fixed a small bug with cached suggestions for emoji when returning to an issue/PR;
* **2.4.0**
* Keyboard shortcuts (fixes https://github.com/jerone/UserScripts/issues/19);
* **2.3.0**
* Added emoji's (fixes https://github.com/jerone/UserScripts/issues/37);
* Added underline button;
* Added option to choose the character that precedes the list;
* Added option to choose the characters that makes up a horizontal line;
* Fixed running on GitHub Gists and inline comments on commits (fixes https://github.com/jerone/UserScripts/issues/43);
* Fixed linking @users on GitHub Gists (fixes https://github.com/jerone/UserScripts/issues/13);
* Reply in correct inline commit comment textarea (fixes https://github.com/jerone/UserScripts/issues/14);
* Searching snippets improved;
* Improve table code;
* Added missing tooltips;
* Corrected dependency message;
* **2.2.0**
* Fixed issues after recent layout updates (fixes https://github.com/jerone/UserScripts/issues/43);
* Added support for GFM task lists in replies (fixes https://github.com/jerone/UserScripts/issues/35);
* **2.1.0**
* Added tab character as a snippet (thnx to [r-a-y](https://github.com/r-a-y), fixes https://github.com/jerone/UserScripts/issues/41);
* Updated toMarkdown for replies;
* **2.0.3**
* Fixed reply button style issue after recent layout update;
* Fix ordered list with multi-line (fixes https://github.com/jerone/UserScripts/issues/20);
* Small style fix with bold button in Chrome;
* **2.0.2**
* Fix multiple reply buttons when navigating back;
* Added native & TamperMonkey for Google Chrome compatibility (fixes https://github.com/jerone/UserScripts/issues/11);
* **2.0.1**
* Small bug fix with reply after another layout update from Github;
* **2.0**
* Fixed issues after recent layout updates (https://github.com/blog/1866-the-new-github-issues);
* Fixed pjax for new issues & PR listing pages;
* Added reply buttons (using [to-markdown](https://github.com/domchristie/to-markdown) to convert to Markdown);
* **1.6**
* Removed floating arrow (fixes https://github.com/jerone/UserScripts/issues/7);
* Fixed history back;
* Fixed buttons on Github Gist;
* Fixed inline comments;
* **1.5**
* Added pinned contributing message;
* Added tooltips for all buttons;
* **1.4**
* Included on [Github Gist](https://gist.github.com);
* Fixed issue with missing trailing space when selected;
* Added snippets (only useragent atm);
* Added clear button;
* **1.3**
* Navigation logic implemented;
* Inline comment logic implemented;
* Included on Wiki pages;
* Fixed warnings by JSHint;
* **1.2**
* Added simple table logic;
* Added headers 4 'til 6;
* Combined headers in one button;
* Reordered buttons;
* Added Task Lists https://help.github.com/articles/writing-on-github#task-lists
* Added fenced code blocks;
* Clean up;
* **1.1.1**
* Fixed space being not part of selection again;
* **1.1**
* Fixed space being not part of selection;
* Added new line when needed;
* **1.0**
* Initial version;
## Test cases
* https://github.com/jerone/UserScripts/issues/new (new issue)
* https://github.com/jerone/UserScripts/issues/1 (new comment & edit comment)
* https://github.com/jerone/UserScripts/commit/master (comments below & inline comments)
* https://github.com/jerone/UserScripts/wiki/_new (new wiki)
* https://github.com/jerone/bootstrap-material-design/pull/new/feature/sass (new PR)
* https://gist.github.com/jerone/9526258 (new comment & edit comment)
## Dependencies
* Part of [domchristie](https://github.com/domchristie)'s library [**to-markdown**](https://github.com/domchristie/to-markdown) is used.
## Contributors
* [tophf](https://github.com/tophf)
* [r-a-y](https://github.com/r-a-y)
## External links
* [Greasy Fork](https://greasyfork.org/scripts/493-github-comment-enhancer)
* [OpenUserJS](https://openuserjs.org/scripts/jerone/Github_Comment_Enhancer)