Last active
August 29, 2015 14:20
-
-
Save ultimapanzer/68f601ef9ab7f599d3ce to your computer and use it in GitHub Desktop.
HN Black Titlebar Tampermonkey Script
This file contains 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 HN Black | |
// @version 0.1 | |
// @description blacks out HN title bar | |
// @author @ultimapanzer | |
// @match https://news.ycombinator.com/* | |
// ==/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('#hnmain > tbody > tr:first-child td { background-color: black !important; }'); | |
addGlobalStyle('#hnmain > tbody > tr:first-child > td > table a, #hnmain > tbody > tr:first-child > td > table span.pagetop { color: white !important; }'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment