Talk:SkinSwitchButton

Adding mobile skin
This is a really cool little bit of code. Sometimes you really just need to take a peek at another skin, and you really can't be bothered typing a  statement in the URL bar.

One thing it's missing, though, is a link to the new mobile skin. Some editors do like to see how their changes are interpreted by that skin. Here's a dirty hack to allow for a quick peek at mobile. There's no reciprocity back from mobile, but chances are that you're only in mobile for a quick peek, anyway.

Note that I have my monobook/wikiamobile buttons attached to a different spot than the current revision of the code offered here at dev. I like it to the right of my user name, not to the left. -- user talk:CzechOut 16:40, April 18, 2012 (UTC)

$( 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' );		} 	} } );