User:Cade Calrayn/global.js

// Skin Switch Button for monobook to oasis and vice versa // and for monobook and oasis to wikiamobile

$( function {	if ( skin === 'oasis' ) {		var dropnav = document.getElementsByClassName( 'user-menu subnav global-nav-dropdown' );		if ( dropnav !== null ) {			dropnav[0].appendChild( 'Oasis' );			dropnav[0].appendChild( 'Mobile' );		}	} if (skin === 'wikia' ) {		var wkTopBar = document.getElementById( 'wkTopBar' );		wkTopBar.appendChild( 'OA' );		wkTopBar.appendChild( 'MB' );	} if (skin === 'monobook' ) {		$( 'Oasis' ).appendTo( '#p-cactions > .pBody > ul' ); $( '<a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=wikiamobile">Mobile</a></li>' ).appendTo( '#p-cactions > .pBody > ul' ); } } );