MediaWiki:GeoHack.js
Appearance
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/*
* The file is used by [[tswiki:GeoHack]] and applies effects to [[Template:GeoTemplate]].
*/
/* basic function library */
function appendCSS(text) {
var s = document.createElement('style');
s.type = 'text/css';
s.rel = 'stylesheet';
if (s.styleSheet) s.styleSheet.cssText = text //IE
else s.appendChild(document.createTextNode(text + '')) //Safari sometimes borks on null
document.getElementsByTagName('head')[0].appendChild(s);
}
window.onload = function() {
/* Add row hover effect */
appendCSS(".directory tr:hover {background:#fdc !important;}")
}