Skip to content

Instantly share code, notes, and snippets.

@tillahoffmann
Last active September 19, 2016 09:52
Show Gist options
  • Save tillahoffmann/0a49c3a74f7902ec869d09030deb0994 to your computer and use it in GitHub Desktop.
Save tillahoffmann/0a49c3a74f7902ec869d09030deb0994 to your computer and use it in GitHub Desktop.
Use the code font for comment boxes and disable "Update branch" button.
// ==UserScript==
// @name GitHub fiddling
// @namespace http://sonalytic.com
// @version 0.1
// @author Till Hoffmann
// @match https://github.com/*
// @grant GM_addStyle
// @require https://code.jquery.com/jquery-3.1.0.min.js
// ==/UserScript==
(function() {
'use strict';
jQuery.noConflict();
GM_addStyle('.comment-form-textarea {font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace}');
jQuery("button:contains('Update branch')").hide();
// TODO: add tab => 4 spaces script in the comment boxes
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment