Created
February 11, 2017 01:24
-
-
Save boarnoah/c9759a30db2e7cb66f7a182155be4d5e to your computer and use it in GitHub Desktop.
GreaseMonkey / TamperMonkey script to remove Github's Dark Header
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 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); | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sweet ๐
Thanks for the credits ๐