Difference between revisions of "User:Kernigh/monobook.js"
Jump to navigation
Jump to search
m (Text replace - "Wikihack" to "NetHackWiki") |
m (Text replace - "nethack.wikia.com" to "nethackwiki.com") |
||
Line 14: | Line 14: | ||
// tagline.js config | // tagline.js config | ||
scr = new Object(); | scr = new Object(); | ||
− | scr.wikiUrl = "http:// | + | scr.wikiUrl = "http://nethackwiki.com/wiki/"; |
− | scr.wikiPhp = "http:// | + | scr.wikiPhp = "http://nethackwiki.com/index.php"; |
// wikialink.js config | // wikialink.js config |
Latest revision as of 19:01, 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://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>