Jump to content

User:MusikAnimal/MoreMenu.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Krinkle (talk | contribs) at 05:04, 21 March 2017 (Maintenance: Match MediaWiki:Gadget-dropdown-menus.js to fix "Uncaught TypeError: mw.Api is not a constructor" since raw load won't honour dependencies). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// <nowiki>
// Script:         MoreMenu.js
// Authors:        MusikAnimal, Haza-w
// Documentation:  [[User:MusikAnimal/MoreMenu]], [[User:Haza-w/Drop-down menus]]
//

(function(){
	if(mw.config.get( 'skin' ) === "vector") {
		mw.loader.load( 'ext.gadget.dropdown-menus-vector' );
	} else {
		mw.loader.load( 'ext.gadget.dropdown-menus-nonvector' );
	}
})();
// </nowiki>