User:Kernigh/monobook.js

From NetHackWiki
Jump to: navigation, search
// <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://nethackwiki.com/wiki/";
scr.wikiPhp = "http://nethackwiki.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>