MediaWiki:DifferentSkinEditor/code.js

//DifferentSkinEditor - Count of Howard //29-9-16 - Initial revision

var pageName = wgPageName; var skin = mw.config.get( 'skin' ); var newItem; var list; var mercuryItem; if (skin == 'oasis') { newItem = 'Monobook Editor';   mercuryItem = 'Mercury Editor'; list = $('#WikiaMainContent .wikia-menu-button > .WikiaMenuElement'); list.prepend(newItem, mercuryItem); } else if (skin == 'monobook') { newItem = 'Edit in Oasis'; mercuryItem = 'Edit in Mercury'; list = $('#p-cactions .pBody > ul > li'); $( list[2] ).after(newItem, mercuryItem); } }) (this.jQuery, this.mediaWiki);
 * (function($, mw) {