LLWiki正在建设中,欢迎加入我们!
“User:Bhsd/edit.js”的版本间差异
跳转到导航
跳转到搜索
小 |
小 |
||
"use strict";
/*global mw, $*/
(
const action = mw.config.get( 'wgAction' ),
contentmodel = mw.config.get( 'wgPageContentModel' ),
skin = mw.config.get( 'skin' )
$body = $(document.body);
// 引自[[moegirl:User:東東君/js/Wikiplus-replace.js]]
mw.loader.using( 'jquery.ui' ).then(() => { dialog.draggable(); });
}).insertAfter( '#Wikiplus-Quickedit-Jump' );
});
}
// 修改WikiEditor的替换文本框
if (skin == 'vector') {
$
$(this).replaceWith( $('<textarea>', {id: "wikieditor-toolbar-replace-replace", tabindex:10})
.
});
}
// 修改templateSandbox的默认页面
$
$( 'input[name = wpTemplateSandboxPage]' ).val(function() {
const namespaces = mw.config.get( 'wgFormattedNamespaces' ),
ns = mw.config.get( 'wgNamespaceNumber' );
return $(this).val() ||
});
});
//
if (
$
$( '#wpTextbox1' ).val(function() { return $(this).val().
});
}
|