Created
July 5, 2017 10:45
-
-
Save grepsedawk/be08a858d220c9739e38fe543956abb5 to your computer and use it in GitHub Desktop.
Revisions
-
grepsedawk created this gist
Jul 5, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ // ==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; })();