MediaWiki:Gadget-site-T302627.js

/** * Investigate and quantify https://phabricator.wikimedia.org/T302627 * * @author Krinkle */ $.when($.ready, mw.loader.using(['mediawiki.util'])).then(function {	if (!mw.config.get('wgUserName')) {		return;	}	var userSkin = mw.user.options.get('skin');	var expectsNewVector = (userSkin === 'vector-2022') || (mw.util.getParamValue('useskin') === 'vector-2022');	var isShowingNewVector = !!( document.querySelector('#mw-sidebar-button') && document.querySelector('.mw-workspace-container .mw-sidebar-action-content') && document.querySelector('.mw-ui-icon-wikimedia-userAvatar') );

if (!expectsNewVector && isShowingNewVector) { mw.track('counter.MediaWiki.vector_bug_T302627.unexpected_vector22'); }	});