Skip to content

Instantly share code, notes, and snippets.

@natebunnyfield
Forked from kaezarrex/octigones.user.js
Created May 19, 2012 17:46
Show Gist options
  • Save natebunnyfield/2731675 to your computer and use it in GitHub Desktop.
Save natebunnyfield/2731675 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"> \
.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