Skip to content

Instantly share code, notes, and snippets.

@flashingpumpkin
Created January 12, 2012 13:02
Show Gist options
  • Select an option

  • Save flashingpumpkin/1600378 to your computer and use it in GitHub Desktop.

Select an option

Save flashingpumpkin/1600378 to your computer and use it in GitHub Desktop.
// @name HN Black Font
// @description Make text black on HN
// @homepage https://gist.github.com/1600378/
// @match https://news.ycombinator.com/*
// @match http://news.ycombinator.com/*
// @run-at document-start
(function() {
var css, head, node;
css = "td { color: #000000; }";
try {
head = document.getElementsByTagName("head")[0];
node = document.createElement("style");
node.type = "text/css";
node.appendChild(document.createTextNode(css));
head.appendChild(node);
} catch (err) {}
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment