Created
May 12, 2009 23:14
-
-
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
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 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