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

“MediaWiki:Mobile.js”的版本间差异

跳转到导航 跳转到搜索
添加1,341字节 、​ 2020年8月21日 (五) 14:52
无编辑摘要
/* 特殊页面 */
$('.page-Special_用户列表 h1').html('LLWiki上的LLer');
 
if(mw.config.get('wgPageName') == 'Special:最近更改') {
var timerFilter = setInterval(function() {
if($( '.mw-rcfilters-ui-itemMenuOptionWidget-view-namespaces' ).length) {
clearInterval(timerFilter);
const isReverted = /invert=1/.test(window.location.href);
var node = $( '.mw-rcfilters-ui-itemMenuOptionWidget-view-namespaces:first' ).clone().insertAfter( '.mw-rcfilters-ui-filterMenuSectionOptionWidget:first' )
.attr('id','ooui-invert')
.removeClass('oo-ui-element-hidden')
.on('click',function() {
if(isReverted) { window.location.href = window.location.href + '&invert=0'; }
else { window.location.href = window.location.href + '&invert=1'; }
}),
inputbox = node.find( 'input' );
inputbox[0].checked = isReverted;
if(isReverted) { inputbox.next().addClass('oo-ui-icon-check'); }
else { inputbox.next().removeClass('oo-ui-icon-check'); }
node.find( 'span.oo-ui-labelElement-label' ).text( wgULS("排除选项", "排除選項") );
}
}, 100);
}
 
mw.loader.using(['mediawiki.api', 'ext.gadget.site-lib']).then(function() {
16,874

个编辑

导航菜单