注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
?_=1
来访问最新页面。https://mzh.moegirl.org.cn/User:%E8%83%A1%E7%A5%A5%E5%8F%88/moeskin.js?_=1
//此页包含仅适合部分人使用的代码。如果要复制使用,请仔细查看代码,并移除不需要使用的部分,或按需求调整代码。切勿直接使用全部内容! //部分内容需要配合User:胡祥又/moeskin.css才有效果 var menu_moeskin='<div id="mw-panel"><div class="portal" id="p-lovelive" style="width: 7em; margin: 0 auto;"><div class="body"><ul><li>' + '<a href="/Special:监视列表">监</a> ' + '<a href="/Special:最近更改">近</a> ' + '<a href="/Special:最新页面">新</a> ' + '<a href="/Special:日志">志</a> ' + '<a href="/萌娘百科 talk_:讨论版">版</a>' + '</li>' + '<li>' + '<a href="/Template:萌娘百科政策文件">政</a> ' + '<a href="/User:Go/">Go</a> ' + '<a href="/Special:特殊页面">特</a> ' + '<a href="/Special:前缀索引/' + mw.config.get('wgPageName') + '/">子</a> ' + '<a href="/Special:链入页面/' + mw.config.get('wgPageName') + '/">链</a>' + '</li></ul></div>' + '<h3 id="p-lovelive-label"><a href="/LoveLive!系列" style="color:#E40080;">LoveLive!系列</a></h3><div class="body"><ul>' + '<li class="n-lovelive-projects" id="n-lovelive-projects">' + '<a href="/LoveLive!">L</a>' + '<div class="half-width-2">' + '<a href="/LoveLive!Sunshine!!">S</a>' + '<a href="/幻日夜羽_-SUNSHINE_in_the_MIRROR-" style="color: #19737D;">幻</a>' + '</div>' + '<a href="/LoveLive!虹咲学园学园偶像同好会">虹</a>' + '<a href="/LoveLive!Superstar!!">S</a>' + '<a href="/学园偶像音乐剧">剧</a>' + '<a href="/莲之空女学院学园偶像俱乐部">莲</a>' + '</li>' + '<li class="n-lovelive-projects" id="n-lovelive-templates">' + '<a href="/Template:LoveLive!">大</a>' + '<a href="/Template:LoveLive!Sunshine!!">家</a>' + '<a href="/Template:LoveLive!虹咲学园学园偶像同好会">族</a>' + '<a href="/Template:LoveLive!Superstar!!">模</a>' + '<a href="/Template:学园偶像音乐剧">板</a>' + '<a href="/Template:莲之空女学院学园偶像俱乐部">□</a>' + '<a href="/Template:LoveLive!系列">□</a>' + '</li>' + '<li class="n-lovelive-projects" id="n-lovelive-eventlist">' + '<a href="/LoveLive!/事件年表">历</a>' + '<a href="/LoveLive!Sunshine!!/事件年表">史</a>' + '<a href="/LoveLive!虹咲学园学园偶像同好会/事件年表">年</a>' + '<a href="/LoveLive!Superstar!!/事件年表">表</a>' + '<span> </span>' + '<a href="/莲之空女学院学园偶像俱乐部/事件年表">□</a>' + '</li>' + '<li class="n-lovelive-projects" id="n-lovelive-activity">' + '<span>活</span>' + '<a href="/LoveLive!Sunshine!!/偶像活动杂项">动</a>' + '<a href="/LoveLive!虹咲学园学园偶像同好会/偶像活动杂项">杂</a>' + '<a href="/LoveLive!Superstar!!/偶像活动杂项">项</a>' + '<span> </span>' + '<a href="/莲之空女学院学园偶像俱乐部/偶像活动杂项">□</a>' + '</li>' + '<li class="n-lovelive-projects" id="n-lovelive-musiclist">' + '<a href="/LoveLive!/音乐列表">音</a>' + '<a href="/LoveLive!Sunshine!!/音乐列表">乐</a>' + '<a href="/LoveLive!虹咲学园学园偶像同好会/音乐列表">列</a>' + '<a href="/LoveLive!Superstar!!/音乐列表">表</a>' + '<span> </span>' + '<a href="/莲之空女学院学园偶像俱乐部/音乐列表">□</a>' + '</li>' + '<li class="n-lovelive-projects" id="n-lovelive-tvanimelist">' + '<a href="/LoveLive!/TV动画作品">电</a>' + '<div class="half-width-2">' + '<a href="/LoveLive!Sunshine!!/TV动画作品">礻</a>' + '<a href="/幻日夜羽_-SUNSHINE_in_the_MIRROR-/TV动画作品" style="color: #19737D;">见</a>' + '</div>' + '<div class="half-width-2">' + '<a href="/LoveLive!虹咲学园学园偶像同好会/TV动画作品">云</a>' + '<a href="/虹四动画">力</a>' + '</div>' + '<a href="/LoveLive!Superstar!!/TV动画作品">画</a>' + '</li>' + '<li class="n-lovelive-projects" id="n-lovelive-namahousoulist">' + '<a href="/LoveLi部_Nico生课外活动">生</a>' + '<a href="/LoveLive!Sunshine!!/生放送列表">放</a>' + '<a href="/LoveLive!虹咲学园学园偶像同好会/生放送列表">送</a>' + '<a href="/LoveLive!Superstar!!/生放送列表">□</a>' + '<span> </span>' + '<div class="half-width-2">' + '<a href="/莲之空女学院学园偶像俱乐部/生放送列表">□</a>' + '<a href="/莲之空女学院学园偶像俱乐部/角色直播列表">□</a>' + '</div>' + '</li>' + '<li class="n-lovelive-projects" id="n-lovelive-radiolist">' + '<a href="/μ\'s广播部_~妮可凛花阳~">广</a>' + '<a href="/LoveLive!Sunshine!!_Aqours浦之星女学院RADIO!!!">播</a>' + '<div class="half-width-2">' + '<a href="/LoveLive!虹咲学园_~放学后放送室~">节</a>' + '<a href="/TV动画_LoveLive!虹咲学园学园偶像同好会_RADIO_Anigasaki!">节</a>' + '</div>' + '<div class="half-width-2">' + '<a href="/LoveLive!Superstar!!_结女放学后放送局_LieRadi!">目</a>' + '<a href="/What_a_Wonderful_Radio!!">目</a>' + '</div>' + '<span> </span>' + '<a href="/菅菅%26粉亲的Mira-Cra补习室Radio">□</a>' + '<a href="/LoveLive!系列的ALL_NIGHT_NIPPON_GOLD">□</a>' + '</li>' + '<li class="n-lovelive-projects" id="n-lovelive-dramalist">' + '<a href="/LoveLive!/广播剧列表">广</a>' + '<span>播</span>' + '<a href="/LoveLive!虹咲学园学园偶像同好会/广播剧列表">剧</a>' + '</li>' + '<li class="n-lovelive-games" id="n-lovelive-games">' + '<div class="half-width-2">' + '<a href="/LoveLive!学园偶像祭">SIF</a>' + '<a href="/LoveLive!学园偶像祭2_MIRACLE_LIVE!">2</a>' + '</div>' + '<a href="/LoveLive!学园偶像祭ALL_STARS">AS</a>' + '</li>' + '<li class="n-lovelive-games" id="n-lovelive-gamelist">' + '<div class="half-width-2">' + '<a href="/LoveLive!学园偶像祭/活动列表">氵</a>' + '<a href="/LoveLive!学园偶像祭2_MIRACLE_LIVE!/活动列表">舌</a>' + '</div>' + '<a href="/LoveLive!学园偶像祭ALL_STARS/活动介绍与列表">动</a> ' + '<div class="half-width-2">' + '<a href="/LoveLive!学园偶像祭/歌曲列表">哥</a>' + '<a href="/LoveLive!学园偶像祭2_MIRACLE_LIVE!/歌曲列表">欠</a>' + '</div>' + '<a href="/LoveLive!学园偶像祭ALL_STARS/歌曲列表">曲</a> ' + '<a href="/LoveLive!学园偶像祭2_MIRACLE_LIVE!/剧情列表">剧</a>' + '<a href="/LoveLive!学园偶像祭ALL_STARS/剧情列表">情</a>' + '</li>' + '<li id="n-lovelive-pagelist">' + '<a href="/User:Hulubot/LoveLive!系列页面列表">页</a> ' + '<a href="/Special:链出更改/User:Hulubot/LoveLive!系列页面列表">编</a> ' + '<a href="/User:Hulubot/LoveLive!系列相关页面编辑者贡献统计">贡</a> ' + '<a href="/User:胡祥又/LoveLive!系列专题编辑指南">指</a>' + // '<a href="/User:胡祥又/LoveLive!系列编辑报告">报</a>' + '</li>' + '<li id="n-lovelive-calendar">' + '<a href="/User:胡祥又/莲之空日历">莲历</a> ' + '<a href="/User:胡祥又/LoveLive!系列歌词志异">歌词</a>' + '</li>' + '</ul></div></div></div>'; //隐藏背景图片 $('#moe-global-background').remove(); //页顶菜单改成显示页面标题 $('#moe-global-header-inner .links-area').css('max-width', '60%'); $('#moe-global-header-inner .links-area .nav-links-group').text($('#firstHeading').text()).css({ 'font-size': '125%', 'font-weight': '500', 'overflow': 'hidden' }); $('#moe-global-header-inner .links-area .nav-links-group + div').remove(); //左上角图标 $('#moe-global-header #moe-global-header-inner .links-area .site-logo-area a').attr('href', '#'); //把左上角菜单改成指定内容 且每次点击都要改一次 //内容复杂 修改MOE_SKIN_GLOBAL_DATA.value.moeskin_topbar没法实现 $('.sidenav-toggler button').on('click', function () { setTimeout(function () { $('.sidenav-inner .n-menu').css('margin', 'auto 0').html(menu_moeskin); }, 100); }); //调整页面标题位置 隐藏标题下方文字和按钮 $('#moe-article-header-container').css({'margin-bottom': '0', 'border-bottom': '0', 'padding-bottom': '0'}); $('#firstHeading').css({ 'margin-bottom': '0', 'text-align': 'left' }); $('.header-title-extra').css({ 'flex-direction': 'row', 'justify-content': 'space-between' }); $('#tagline').remove(); $('.mobile-edit-button #ca-edit').remove(); $('.latest-contributors').remove(); if (!$('#subtitle').html()) { $('#moe-article-header-title').addClass('flex').css('justify-content', 'space-between'); $('#moe-article-header-container').css('padding-bottom', '0.5rem'); } //主内容的位置和边距 $('#mw-body').css({'padding-top': '5px'}); //右上方按钮 // MOE_SKIN_GLOBAL_DATA.content_navigation.actions.lastedit = { id: 'lastedit', text: '←', title: '最新一次编辑', href: '/Special:差异/' + mw.config.get('wgCurRevisionId') }; $('.more-actions-list').first().append($('<li>').attr('id', 'ca-lastedit').addClass('Wikiplus-More-Function-Button').append($('<a>').text('←').attr('href', '/Special:差异/' + mw.config.get('wgCurRevisionId')).attr('title', '最新一次编辑'))); //调整右下角目录和工具栏 $('#moe-float-toc-trigger').css({ 'padding': '1rem', 'transform': 'scale(0.7)', 'border-radius': '99em' , 'bottom': 'unset', 'top': '50px' }); $('#moe-global-toolbar').css({'right': '1.5rem', 'bottom': '1.5rem'}); // MOE_SKIN_GLOBAL_DATA.nav_urls.rc = { text: '子页面', href: '/Special:前缀索引/' + mw.config.get('wgPageName') }; $('#moe-global-toolbar .toolbar-inner-container .more-actions .dropdown-content ul').first().append($('<li>').addClass('toolbar-link').append($('<a>').text('子页面').attr('href', '/Special:前缀索引/' + mw.config.get('wgPageName')))); //修改最近更改列表、监视列表、日志页内容 $('.mw-changeslist-line td.mw-enhanced-rc abbr.minoredit, .mw-changeslist-line td.mw-enhanced-rc abbr.newpage, .mw-changeslist-line td.mw-enhanced-rc abbr.botedit').addClass('half-width-1'); $('.mw-changeslist-line td.mw-enhanced-rc abbr.unpatrolled').text('!'); $('.mw-changeslist-line-inner, .mw-contributions-list > li').each(function () { $(this).html($(this).html().replace(/(\d+)次更改/, '$1×').replace(/自上次访问有(\d+)次/, '$1※').replace(/\u200E/g, '').replace('差异 |', '<span class="translucent">*</span> |').replace('| 历史', '| <span class="translucent">史</span>')); }); if (document.body.clientWidth <= 576) { $('.mw-changeslist-line-inner').each(function () { $($(this).children('.mw-changeslist-separator')[0]).html('<br />'); }); $('.mw-enhanced-rc-nested').each(function () { $($(this).children('.mw-changeslist-separator')[1]).html('<br />'); }); } $('.mw-changeslist-diff-cur').text('⤒'); $('.mw-changeslist-diff').text('↓'); $('.mw-enhanced-rc-nested').each(function () { $(this).html($(this).html().replace('| 之前', '| <span class="translucent">*</span>')); }); $('.mw-changeslist-history').text('史'); $('span.mw-plusminus-pos, strong.mw-plusminus-pos, span.mw-plusminus-neg, strong.mw-plusminus-neg').each(function () { $(this).html('<span>' + $(this).text().replace(/[^0-9+-]/g, '') + '</span>').append('<span class="mw-plusminus-result">→' + $(this).attr('title').replace(/[^0-9]/g, '') + '</span>'); }); $('.mw-plusminus-null').each(function () { $(this).html('<span>±0</span>').append('<span class="mw-plusminus-result">→' + $(this).attr('title').replace(/[^0-9]/g, '') + '</span>'); }); $('.mw-changeslist-line-inner .changedby').each(function () { $(this).html($(this).html().replace(/((\d+)×)/g, '×$1')); }); $('.mw-usertoollinks-talk').text('论'); $('.mw-usertoollinks-contribs').text('贡'); $('.mw-usertoollinks-block').text('封'); setTimeout(function () { $('.mw-rollback-link a').each(function () { $(this).html($(this).html().replace('回退超过10次的编辑', '回退10+').replace(/回退(\d+)次编辑/, '回退$1')); }); $('.mw-rollback-link').each(function () { $(this).html($(this).html().replace(/^\[(.+?)\]$/, '$1').replace('超过10次的编辑', '<span class="translucent">10+</span>')); }); }, 1000); $('.mw-tag-marker-Bot').text('机'); $('.mw-tag-marker-Automation_tool').text('工具'); $('.mw-tag-marker-mobile_edit, .mw-tag-marker-mobile_web_edit').text('手机'); $('.mw-tag-marker-mw-new-redirect').text('↳'); $('.mw-tag-marker-大段删除').text('↘'); $('.mw-tag-marker-invisibleCharacter').text('零宽空格'); $('.mw-tag-marker-疑似敏感用词').text('#'); $('.mw-changeslist-last .mw-changeslist-line-inner, .mw-changeslist-last .mw-enhanced-rc-nested').append('<span class="mw-uctop">↑</span>'); //修改历史页内容 $('.mw-history-histlinks').each(function () { $(this).html($(this).html().replace('当前', '⤒').replace('| 之前', '| <span class="translucent">*</span>').replace('之前', '↓')); }); $('.mw-uctop').text('⤒'); $('.updatedmarker').text('※'); $('.mw-history-undo a').text('撤'); $('.mw-thanks-thank-link').text('♡'); //修改差异页等 mw.hook('wikipage.diff').add(function () { $('.mw-diff-edit a').text('编'); $('.mw-diff-undo a').text('撤'); $('.mw-diff-tool a.mw-thanks-thank-link').text('♡'); }); //隐藏在app中打开按钮 $('#moe-open-in-app').remove(); //隐藏页底网站信息 $('#footer-copyright-text').remove(); mw.hook('huxy.moeskin-js-loaded').fire();