Skip to content

Instantly share code, notes, and snippets.

@kaezarrex
Created May 9, 2012 21:10
Show Gist options
  • Save kaezarrex/2648857 to your computer and use it in GitHub Desktop.
Save kaezarrex/2648857 to your computer and use it in GitHub Desktop.
Remove Octicons
// ==UserScript==
// @name Octigones
// @namespace https://github.com
// @include https://github.com/*
// @description A GitHub beautifier.
// ==/UserScript==
var JQUERY_URL = 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js',
$;
addJQuery(letsJQuery);
// Add jQuery
function addJQuery(callback) {
var script = document.createElement('script');
script.setAttribute('src', JQUERY_URL);
script.addEventListener('load', function() {
var script = document.createElement('script');
script.textContent = '(' + callback.toString() + ')();';
document.body.appendChild(script);
}, false);
document.body.appendChild(script);
}
// All your JQuery code must be inside this function
function letsJQuery() {
$('head').append(' \
<style type="text/css"> \
.mini-icon, .mega-icon {\
display: none; \
} \
</style> \
');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment