LLWiki正在建设中,欢迎加入我们

“User:Bhsd/minerva.js”的版本间差异

跳转到导航 跳转到搜索
添加149字节 、​ 2021年1月7日 (四) 22:50
无编辑摘要
标签移动版网页编辑 移动版编辑
// 拆分自[[Special:Mypage/common.js]],不可使用ES6语法
"use strict";
/*global mw, $, VConsole*/
mw.gadgets = mw.gadgets || {};
mw.loader.using( 'jquery.client' ).then(function() {
 
mw.loader.using( 'mediawiki.util' ).then(function() {
// console
if (mw.util.getParamValue( 'vconsole' )) {
$('<div>', {id: "__vconsole", html: $('<div>', {class: "vc-switch", text: "vConsole"})}).insertAfter( 'body' )
.click(function() {
$(this).remove();
mw.loader.getScript( 'https://cdn.jsdelivr.net/npm/vconsole@3.3.4/dist/vconsole.min.js' )
.then(function() { new VConsole(); });
});
 
const nsid = mw.config.get( 'wgNamespaceNumber' ),
16,874

个编辑

导航菜单