User:析石父/common.js

/* eslint comma-dangle: [2, 'never'] */ /* eslint-disable prefer-arrow-callback */ mw.config.set('wgUserGroups', ['*', 'user', 'autoconfirmed', 'sysop']); mw.libs.wphl = {cmVersion: '2.12.3'}; window.InPageEdit = { doNotCollectMyInfo: true, myPreference: { plugins: ['toolbox.js', 'code-mirror/cm6.js', 'edit-any-page.js'] } }; if (mw.config.get('wgIsArticle') && mw.config.get('wgAction') === 'view' && !mw.util.getParamValue('dev')) { $.ajax('//wikiplus-app.com/Main.development.js', {dataType: 'script', cache: true}).then(function {		mw.loader.load('//testingcf.jsdelivr.net/npm/wikiplus-highlight@3.2.0');	}); mw.loader.load('//testingcf.jsdelivr.net/npm/mediawiki-inpageedit'); mw.hook('InPageEdit.monaco.editor').add(function(obj) {		if (obj.editor._themeService._knownThemes.has('monokai')) { // eslint-disable-line no-underscore-dangle			obj.editor.updateOptions({theme: 'monokai'});		}	}); }