Difference between revisions of "User:Kernigh/monobook.js"
Jump to navigation
Jump to search
m (Attempt to load some of my personal JS.) |
(Add oberin tab.) |
||
Line 19: | Line 19: | ||
// wikialink.js config | // wikialink.js config | ||
function wikiabuttons() { | function wikiabuttons() { | ||
+ | addwb( "action", "oberin", "oberin.wikia.com/wiki/", "" ); | ||
addwb( "action", "roguebasin", "roguebasin.roguelikedevelopment.org/index.php?title=", "" ); | addwb( "action", "roguebasin", "roguebasin.roguelikedevelopment.org/index.php?title=", "" ); | ||
} | } |
Revision as of 18:27, 9 September 2006
// <pre>
/*
* Monobook script of Kernigh at Wikihack - 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>