注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
?_=1
来访问最新页面。https://mzh.moegirl.org.cn/User:GuoPC/js/MoeIndicators.js?_=1
if (MOE_SKIN_GLOBAL_DATA.indicators) { var indicators = MOE_SKIN_GLOBAL_DATA.indicators; delete indicators["noteTA-0"]; if (!$.isEmptyObject(indicators)) { $('#moe-article-header-title').prepend('<div class="moe-indicators"></div>'); mw.loader.addStyleTag(` .moe-indicators { position: relative; display: flex; align-items: center; justify-content: center; font-size: 1.2em; float: right; margin: 5px 0 0 0; height: 42px; z-index: 1; } .moe-indicators > * { display: inline-flex; align-items: center; } @media (max-width: 768px) { .moe-indicators { float: none; margin: 0 0 5px 0; height: auto; order: 5; } .header-title-extra { order: 6; } #moe-article-header-title { display: flex; flex-direction: column; } } `); if (indicators["mw-helplink"]) { mw.loader.addStyleTag(` a.mw-helplink { background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E %3Cpath d=%22M12.001 2.085c-5.478 0-9.916 4.438-9.916 9.916 0 5.476 4.438 9.914 9.916 9.914 5.476 0 9.914-4.438 9.914-9.914 0-5.478-4.438-9.916-9.914-9.916zm.001 18c-4.465 0-8.084-3.619-8.084-8.083 0-4.465 3.619-8.084 8.084-8.084 4.464 0 8.083 3.619 8.083 8.084 0 4.464-3.619 8.083-8.083 8.083z%22/%3E %3Cpath d=%22M11.766 6.688c-2.5 0-3.219 2.188-3.219 2.188l1.411.854s.298-.791.901-1.229c.516-.375 1.625-.625 2.219.125.701.885-.17 1.587-1.078 2.719-.953 1.186-1 3.655-1 3.655h1.969s.135-2.318 1.041-3.381c.603-.707 1.443-1.338 1.443-2.494s-1.187-2.437-3.687-2.437zM11 16h2v2h-2z%22/%3E %3C/svg%3E"); background-repeat: no-repeat; background-position: left center; padding-left: 28px; display: inline-block; height: 24px; line-height: 24px; } `); } // if (indicators["noteTA-0"]) { // mw.loader.addStyleTag(` // .moe-noteTA { // display: inline-flex; // align-items: center; // justify-content: center; // background: var(--theme-accent-link-color); // border-bottom: 4px solid var(--theme-button-color); // border-radius: .2rem; // font-family: serif; // font-size: 18px; // font-weight: 900; // width: 32px; // height: 32px; // margin: 0 4px; // user-select: none; // cursor: pointer; // } // `); // var variants = MOE_SKIN_GLOBAL_DATA.content_navigation.variants; // for (var i = 0; i < variants.length; i++) { // if (variants[i].class == "selected") { // var selectedLang = variants[i].text; // } // } // indicators["noteTA-0"] = '<span title="' + wgULS("本页使用了标题或全文手工转换,现处于", "本頁使用了標題或全文手工轉換,現處於") + selectedLang + '模式"><span class="moe-noteTA">' + wgULS("汉", "漢") + '</span></span>'; // setTimeout(function() { // if ($("#noteTA-vector-menu-tabs").length > 0) { // $("#noteTA-vector-menu-tabs").hide(); // $('.moe-noteTA').on('click', $("#p-languages-group"), function() { // $("#noteTA-vector-menu-tabs").click(); // }); // } // }, 1000); // } for (var key in indicators) { $('.moe-indicators').append(indicators[key]); } } }