-
-
Save natebunnyfield/2731675 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"> \ | |
.icon, .mini-icon, .mega-icon { \ | |
display: none !important; \ | |
} \ | |
</style> \ | |
'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment