User:SuperGrey/gadgets/pangu/main.js
外观
(重定向自User:SuperGrey/ pangu.js)
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
// Main page: [[User:SuperGrey/gadgets/pangu]]
if (mw.config.get('wgAction') === 'view') {
mw.loader.load('https://mastermay.github.io/text-autospace.js/text-autospace.min.js');
mw.util.addCSS(`
html {
font-feature-settings: "chws";
}
html.han-la hanla:after {
content: " ";
display: inline;
font-family: Arial;
font-size: 0.89em;
}
html.han-la code hanla,
html.han-la pre hanla,
html.han-la kbd hanla,
html.han-la samp hanla,
html.han-la ruby hanla {
display: none;
}
html.han-la ol > hanla,
html.han-la ul > hanla {
display: none;
}
html.han-la tr > hanla {
display: none;
}
`);
$(document).ready(function () {
document.documentElement.classList.add('han-la');
});
}