Skip to content

Instantly share code, notes, and snippets.

@akuhn
Last active January 3, 2016 06:29
Show Gist options
  • Save akuhn/8423478 to your computer and use it in GitHub Desktop.
Save akuhn/8423478 to your computer and use it in GitHub Desktop.
Missing Twitter's dark navigation bar? Same here. Fixed.
// ==UserScript==
// @name Twitter Dark Navbar
// @namespace http://example.com
// @description hacked with love by @akuhn
// @include https://twitter.com/*
// @version 1
// @grant none
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
addGlobalStyle(".global-nav-inner { border-color: #505050; " +
"background-image: linear-gradient(to bottom, #393939, #282828); " +
"box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); }");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment