User:Satanic Hamster/monobook.js

ShoutWiki — express yourself and be heard!
Jump to: navigation, search
// Skin Switch Button for monobook to oasis and vice versa
// and for monobook and oasis to wikiamobile

$( function () {
	if ( !document.getElementById( 'ca-skins' ) ) {
		if ( skin === 'monobook' ) {
			$( '<li id="ca-skins"><a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=modern">modern</a></li>' ).appendTo( '#AccountNavigation' ); $( '<li id="ca-skins"><a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=monaco">monaco</a></li>' ).appendTo( '#AccountNavigation' );
		} else {
			$( '<li id="ca-skins"><a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=wikia">Wikia</a></li>' ).appendTo( '#p-cactions > .pBody > ul' ); $( '<li id="ca-skins"><a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=wikiamobile">Mobile</a></li>' ).appendTo( '#p-cactions > .pBody > ul' );
		} 
	}
} );