MediaWiki:RandomCSS.js

// Random CSS for specific pages if (mediaWiki.config.get('wgPageName') === 'Test') { var link = []; link[0] = "http://sonako.wikia.com/index.php?title=MediaWiki:Test.css/Test_01.css&action=raw&ctype=text/css&maxage=0&smaxage=0"; link[1] = "http://sonako.wikia.com/index.php?title=MediaWiki:Test.css/Test_02.css&action=raw&ctype=text/css&maxage=0&smaxage=0"; $(function {       var style = link[Math.floor(Math.random * link.length)];        if (document.createStyleSheet) {            document.createStyleSheet(style);        } else {            $(' ', { rel: 'stylesheet', type: 'text/css', href: style }).appendTo('head');       }    }); }