Created
May 9, 2012 21:10
-
-
Save kaezarrex/2648857 to your computer and use it in GitHub Desktop.
Remove Octicons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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