User:Americhino/common.js

// More like a test than anything so here goes nothing $('.wds-global-navigation__content-bar-right .wds-button.wds-is-secondary.wds-global-navigation__link-button').wrap(' '); mw.hook('dev.wds').add(function(wds) {	var $adminToolsMenu = $('').addClass('wds-list wds-is-linked');	$('.wds-global-navigation .wds-button.wds-is-secondary.wds-global-navigation__link-button[data-tracking-label="start-a-wiki"]').after( $(' ')		.addClass('wds-dropdown') .append(			$(' ')			.attr('id', 'GlobalNavAdminTools')			.addClass('wds-button wds-is-secondary wds-global-navigation__link-button wds-dropdown__toggle')			.attr('style', 'border-left: none !important; padding: 4px 3px !important;')			.html(wds.icon('more'))			.after( $(' ')				.addClass('wds-dropdown__content wds-is-right-aligned') .append(					$('')					.addClass('wds-list wds-is-linked')					.append( $('') .addClass('wds-dropdown-level-2') .append(							$('')							.attr('href', '#')							.addClass('wds-dropdown-level-2__toggle')							.attr('id', 'adminToolsLevel2')							.css('min-width', '100% !important')							.append( $(' ').text('Lorem'), $(' ')),							$(' ')							.addClass('wds-is-not-scrollable wds-dropdown-level-2__content')							.append($adminToolsMenu)						) )				)			)		)	);	$adminToolsMenu.append( // and this doesn't work for some reason $('').append(			$('')			.attr('href', '//dev.wikia.com/')			.attr('target', '_blank')			.text('Ipsum (Dev)')		) ); }); // too small to put in a seperate document lol mw.util.addCSS(' \   .wds-global-navigation #GlobalNavAdminTools #wds-icons-more { \        transform: scale(0.8); \    } \	.wds-global-navigation #adminToolsLevel2 { \		transform: scaleX(-1); \	} \	.wds-global-navigation #adminToolsLevel2 span { \		transform: scaleX(-1) !important; \	}'); importArticles({	type: 'script',	articles: [		'u:dev:MediaWiki:WDSIcons/code.js',	] });