User:Dai ca superman/global.js

/*  */

/* Adds a 'Back to page' link under the preview header when previewing an edit. */ $(function {   if (wgAction == "submit") {        $('#WikiaEditBoxHeader p').clone.appendTo('#WikiaPageHeader:first-child');    } });

/* History button for diffs */ /* (doesn't work on some namespaces like User: and User talk: */ /*   because w:Special:MyPage/global.js and Special:MyPage/wikia.js */ /*   never get loaded) */ $(function {	$("h1:contains('Changes:')").after('History '); }) // 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' ).prependTo( '#AccountNavigation' ); $( 'WM' ).prependTo( '#AccountNavigation' ); $( 'Bản in' ).prependTo( '#AccountNavigation' );		} else {			$( 'Oasis</a></li>' ).prependTo( '#p-cactions > .pBody > ul' ); $( '<a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=wikiamobile">Mobile</a></li>' ).prependTo( '#p-cactions > .pBody > ul' ); } 	} } );

importScriptPage('MediaWiki:WhamAPI.js', 'monchbox'); importScriptURI('http://monchbox.wikia.com/wiki/MediaWiki:B3.js/main.js?action=raw&ctype=text/javascript&templates=expand&t=' + (new Date).getTime);