Difference between revisions of "User:Kernigh/monobook.js"
Jump to navigation
Jump to search
(This script might not work, but try to use it anyway.) |
(No difference)
|
Revision as of 04:04, 20 August 2006
// <pre>
/*
* Monobook script of Kernigh at Central Wikia - 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://roguebasin.roguelikedevelopment.org/index.php?title=";
scr.wikiPhp = "http://roguebasin.roguelikedevelopment.org/index.php";
// wikialink.js config
function wikiabuttons() {
addwb( "action", "wikihack", "nethack.wikia.com/wiki/", "" );
}
<!-- Hotlinks! These should be in my cache because I visit wikia.com often. -->
loadScript( "http://www.wikia.com/index.php", "User:Kernigh/tagline.js" );
loadScript( "http://www.wikia.com/index.php", "User:Kernigh/wikialink.js" );
// </pre>