(function run() {
var head = document.getElementsByTagName('head')[0];
if (window.wikipediaFix) {
head.removeChild(wikipediaFix);
wikipediaFix = false;
return;
}
var els = ["table", "p", "li", ".relarticle", ".rellink", ".mainarticle", ".thumb"];
var css = "";
for (var i in els) {
css += els[i] + ":hover a {color: #0645AD; border-bottom: 0;}"
+ els[i] + ":hover a.new {color: #BA0000; border-bottom: 0;}"
+ els[i] + ":hover a:visited {color: #0B0080; border-bottom: 0;}"
+ els[i] + ":hover .reference {display: inline;}"
+ els[i] + ":hover .Template-Fact {display: inline;}"
+ els[i] + ":hover .Inline-Template {display: inline;}";
}
css += 'a, a:visited {color: #000; border-bottom: 1px dotted #bbb}'
+ '#siteNotice,'
+ '.Template-Fact,.metadata,.cn-fundraising,.reference,.Inline-Template {display: none;}'
+ 'a.new {color:#000;}';
wikipediaFix = document.createElement('style');
wikipediaFix.type = 'text/css';
wikipediaFix.styleSheet
? wikipediaFix.styleSheet.cssText = css
: wikipediaFix.appendChild(document.createTextNode(css));
head.appendChild(wikipediaFix);
})();