Created
August 10, 2012 00:12
-
-
Save dcolish/3309396 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 fixhub | |
| // @version 0.5 | |
| // @namespace lazar6@illinois.edu | |
| // @description https://github.com/davidlazar/fixhub | |
| // | |
| // @match *://github.com/* | |
| // | |
| // @resource fixhubCSS fixhub.css | |
| // @resource iconCSS fixhub-icons.css | |
| // @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
| // | |
| // ==/UserScript== | |
| // Add hand-written styles | |
| var fixhubCssText = GM_getResourceText("fixhubCSS"); | |
| GM_addStyle(fixhubCssText); | |
| // Add generated icon styles | |
| var iconCssText = GM_getResourceText("iconCSS"); | |
| GM_addStyle(iconCssText); | |
| // Replace the user bar icons with text | |
| $('a#new_repo').html('New Repo'); | |
| // TODO this hides any settings alerts | |
| $('a#account_settings').html('Settings'); | |
| $('a#logout').html('Logout'); | |
| $('a.notification-indicator').html('Notifications'); | |
| // Move notifications back | |
| $('a.notification-indicator').attr('id', 'notifications'); | |
| $('ul#user-links').append($('a#notifications')); | |
| $('a#notifications').wrap('<li></li>'); | |
| // Make the user bar items be minibuttons | |
| $('a#new_repo').addClass('minibutton'); | |
| $('a#account_settings').addClass('minibutton'); | |
| $('a#logout').addClass('minibutton'); | |
| $('a#notifications').addClass('minibutton').removeClass('notification-indicator'); | |
| // Hack to fix user bar minibutton hover color | |
| $('#userbox').attr('id', 'fixhub-userbox'); | |
| // Remove the repo label ("PUBLIC") on the very left of the page | |
| $('span.repo-label').remove(); | |
| // Remove the little clock icon next to "Latest commit to the master branch" | |
| $('.last-commit span.mini-icon').remove(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment