Skip to content

Instantly share code, notes, and snippets.

@boarnoah
Created February 11, 2017 01:24
Show Gist options
  • Save boarnoah/c9759a30db2e7cb66f7a182155be4d5e to your computer and use it in GitHub Desktop.
Save boarnoah/c9759a30db2e7cb66f7a182155be4d5e to your computer and use it in GitHub Desktop.
GreaseMonkey / TamperMonkey script to remove Github's Dark Header
// ==UserScript==
// @name GitHubHeaderFixer
// @namespace GitHubHeaderFixer
// @version 1.0
// @description Removes GitHub's Dark Header
// @include https://github.com/*
// @include https://*.github.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
//thanks to https://github.com/DennisSnijder/MakeGithubGreatAgain (Chrome Extension that does the same)
(function() {
'use strict';
var greasemonkeyInterval = setInterval(greasemonkey, 200);
function greasemonkey() {
const header = document.getElementsByClassName('header-dark');
if (header.length){
header[0].classList.remove('header-dark');
clearInterval(greasemonkeyInterval);
}
}
})();
@DennisSnijder
Copy link

Sweet 💃
Thanks for the credits 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment