Skip to content

Instantly share code, notes, and snippets.

@grepsedawk
Created July 5, 2017 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grepsedawk/be08a858d220c9739e38fe543956abb5 to your computer and use it in GitHub Desktop.
Save grepsedawk/be08a858d220c9739e38fe543956abb5 to your computer and use it in GitHub Desktop.
// ==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