Skip to content

Instantly share code, notes, and snippets.

@rcrowley
Created May 12, 2009 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcrowley/110783 to your computer and use it in GitHub Desktop.
Save rcrowley/110783 to your computer and use it in GitHub Desktop.
CSS changes to the MySQL docs to make links always look like links
// ==UserScript==
// @name MySQL Linkify
// @namespace rcrowley.org
// @description Restyle <code> tags within <a> tags to reduce confusion
// @include http://*mysql.com/*
// ==/UserScript==
(function() {
var a = document.getElementsByTagName('a');
for (var i = 0; i < a.length; ++i) {
var code = a[i].getElementsByTagName('code');
for (var j = 0; j < code.length; ++j) {
code[j].style.color = 'blue';
code[j].style.textDecoration = 'inherit';
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment