Created
July 5, 2017 10:45
-
-
Save grepsedawk/be08a858d220c9739e38fe543956abb5 to your computer and use it in GitHub Desktop.
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 GitHub Logo to Profile | |
// @version 0.1 | |
// @description Make the main octocat logo take me to my profile for faster navigation | |
// @author Pachonk | |
// @match https://github.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
document.querySelectorAll('.header-logo-invertocat')[0].href = 'https://github.com/pachonk'; | |
let headerNav = document.querySelectorAll('.header-nav')[0]; | |
headerNav.innerHTML = '<li class="header-nav-item"><a class="header-nav-link" href=/>Home</a></li>' + headerNav.innerHTML; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment