User:Egwene of the Malazan Empire/global.js

// 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 === 'oasis' || skin === 'wikia' ) {			$( 'MB' ).appendTo( '#AccountNavigation' ); $( 'WM' ).appendTo( '#AccountNavigation' );		} else {			$( 'Oasis' ).appendTo( '#p-cactions > .pBody > ul' ); $( 'Mobile' ).appendTo( '#p-cactions > .pBody > ul' );		} 	} } );

// Adds a button for the Malazan Wiki:Toolbox to the bottom toolbar's "My Tools" menu in oasis and a button along the top bar in monobook. if(skin=='oasis') { $('#my-tools-menu').prepend( ' <a href="/wiki/Malazan Wiki:Toolbox" title="A table of handy links">Toolbox</a></li>' ); } else { $(mw.util.addPortletLink( 'p-cactions', '/wiki/Malazan Wiki:Toolbox', 'toolbox', null, 'A table of handy links' )); }