Difference between revisions of "User:Kernigh/monobook.js"
Jump to navigation
Jump to search
(Add oberin tab.) |
m (Text replace - "Wikihack" to "NetHackWiki") |
||
Line 2: | Line 2: | ||
/* | /* | ||
− | * Monobook script of Kernigh at | + | * Monobook script of Kernigh at NetHackWiki - public domain |
*/ | */ | ||
Revision as of 18:43, 11 November 2010
// <pre>
/*
* Monobook script of Kernigh at NetHackWiki - public domain
*/
// load a script from some MediaWiki
function loadScript( wikiPhp, file ) {
document.write('<script type="text/javascript" src="' +
wikiPhp + '?title=' + file + '&action=raw' +
'&ctype=text/javascript&dontcountme=s"></script>');
}
// tagline.js config
scr = new Object();
scr.wikiUrl = "http://nethack.wikia.com/wiki/";
scr.wikiPhp = "http://nethack.wikia.com/index.php";
// wikialink.js config
function wikiabuttons() {
addwb( "action", "oberin", "oberin.wikia.com/wiki/", "" );
addwb( "action", "roguebasin", "roguebasin.roguelikedevelopment.org/index.php?title=", "" );
}
loadScript( "http://www.wikia.com/index.php", "User:Kernigh/sysop.js" );
loadScript( "http://www.wikia.com/index.php", "User:Kernigh/tagline.js" );
loadScript( "http://www.wikia.com/index.php", "User:Kernigh/wikialink.js" );
// </pre>