16,874
个编辑
LLWiki正在建设中,欢迎加入我们!
小 |
小 |
||
/*global mw, $, OO, wgULS*/
// Unslashifier by [[wikipedia:User:Majavah]]
const pagename = mw.config.get('wgPageName')
if (pagename.endsWith('/')) {
const url = '/zh/' + pagename.slice(0, -1);
});
if (['edit', 'submit'].includes(
$('body').on('click', 'span.mw-charinsert-item', function(e) {
$('#wpTextbox1').textSelection(
mw.hook('wikipage.content').add( function($content) {
if (['edit', 'submit'].includes(action)
▲ !mw.config.get('wgIsProbablyEditable') &&
var ele = $('.editRequest > a'),
href = new mw.Uri(ele.attr('href')),
/* 沙盒顶部 */
var uri = new mw.Uri();
if ( ['LLWiki:沙盒', 'Template:Sandbox'].includes(pagename) && action == 'view' &&
▲ mw.config.get('wgAction') == 'view' &&
!(uri.query.diff || uri.query.oldid) ) {
$content.prepend('<table class="infobox" style="background-color:#f3f5f7;width:70%;border-left-color:#c5c5c5" cellpadding="2" align="center">' +
'<tbody><tr>' +
'<img src="/mediawiki/img_auth.php/0/04/Bandeau-avertisement-3.png 1.5x" width="50" height="50">' +
});▼
'</td>' +
'<td><span style="color:">欢迎来到沙盒!您可以在此进行编辑测试。</span></td>' +
'</tr></tbody>' +
}
});
var timer = setInterval(function() {
if ($('.oo-ui-windowManager .oo-ui-buttonElement-button').length) {
clearInterval(timer);
$('.oo-ui-windowManager .oo-ui-buttonElement-button').each(function() {
if (this.href) { $(this).off('click'); }
});
}
|