16,874
个编辑
LLWiki正在建设中,欢迎加入我们!
小 标签:移动版网页编辑 移动版编辑 |
小 标签:移动版网页编辑 移动版编辑 |
||
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() {▼
mw.loader.getScript( 'https://cdn.jsdelivr.net/npm/vconsole@3.3.4/dist/vconsole.min.js' )
.then(function() {
$('.vc-cmd-input').replaceWith( $('<textarea>', {class: 'vc-cmd-input'}) );
});
}
else {
▲ $('<div>', {id: "__vconsole", html: $('<div>', {class: "vc-switch", text: "vConsole"})}).insertAfter( 'body' )
▲ .click(function() {
const href = location.href;
location.href = href + (href.includes( '?' ) ? '&' : '?') + 'vconsole=1';
});
}
const nsid = mw.config.get( 'wgNamespaceNumber' ),
|