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

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

跳转到导航 跳转到搜索
删除175字节 、​ 2023年3月17日 (五) 12:42
// 使用Wikiplus小工具快速编辑
标签移动版网页编辑 移动版编辑
(// 使用Wikiplus小工具快速编辑)
}
 
const template = mw.template.get( 'skins.minerva.scripts', 'menuGroup.mustache' ),
/* 自定义移动版导航 */
group = [
mw.hook( 'mobile.menu' ).add(function($menu) {
{icon: 'fa fa-usersretweet', text: '用户列表替换文本', href: '/zh?title=/Special:用户列表&creationSort=1&desc=1替换文本'},
console.log('Hook: mobile.menu,开始添加自定义导航项目');
}, {icon: 'fa fa-copyban', text: '所有页面滥用过滤器', href: '/zh?title=/Special:所有页面&namespace=滥用过滤器' + nsid},
const template = mw.template.get( 'skins.minerva.scripts', 'menuGroup.mustache' ),
{icon: 'fas fa-external-link-alt', text: '链接搜索', href: '/zh?target=http://*&title=Special:链接搜索'},
group = [
{icon: 'fa fa-retweetusers', text: '替换文本用户列表', href: '/zh/?title=Special:替换文本用户列表&creationSort=1&desc=1'},
{icon: 'fa fa-banpuzzle-piece', text: '滥用过滤器版本', href: '/zh/Special:滥用过滤器版本'},
],
{icon: 'fas fa-external-link-alt', text: '链接搜索', href: '/zh?target=http://*&title=Special:链接搜索'},
extraGroup = [
{icon: 'fa fa-users', text: '用户列表', href: '/zh?title=Special:用户列表&creationSort=1&desc=1'},
{ icon: 'fa fa-puzzlefolder-pieceopen', text: '版本子页面', href: '/zh/Special:版本'}
href: '/zh?title=Special:前缀索引&prefix=' + title + '/&namespace=' + nsid + '&stripprefix=1'
],
}, { icon: 'fa fa-hourglass-half', text: '展开模板',
extraGroup = [
href: '/zh?title=Special:展开模板&wpRemoveComments=1&wpGenerateRawHtml=true&wpInput={{:' + pageName + '}}'
{ icon: 'fa fa-folder-open', text: '子页面',
}, {icon: 'fa fa-copy', text: '所有页面', href: '/zh?title=Special:前缀索引&prefix=' + title + '/所有页面&namespace=' + nsid + '&stripprefix=1'}
];
}, { icon: 'fa fa-hourglass-half', text: '展开模板',
$('<ul>', {html: (mw.config.get( 'wgIsArticle' ) ? extraGroup : []).concat( group ).map(function(ele) {
href: '/zh?title=Special:展开模板&wpRemoveComments=1&wpGenerateRawHtml=true&wpInput={{:' + pageName + '}}'
return template.render( {components: [ele]} ).toArray();
}, {icon: 'fa fa-copy', text: '所有页面', href: '/zh?title=Special:所有页面&namespace=' + nsid}
}).flat()}).insertAfter( $menu.children().eq(2) );
];
$('<ul>', {html: (mw.config.get( 'wgIsArticle' ) ? extraGroup : []).concat( group ).map(function(ele) {
return template.render( {components: [ele]} ).toArray();
}).flat()}).insertAfter( $menu.children().eq(2) );
});
});
//</nowiki>
16,874

个编辑

导航菜单