使用者:Uwu/text.css
出自 淡水維基館
注意:在儲存以後,您必須清除瀏覽器快取才能看到所作出的改變。
- 火狐(Firefox)/Safari:按住“Shift”鍵再點擊“刷新”,或按下“Ctrl-F5”或“Ctrl-R”(Mac上為“⌘-R”)
- Google瀏覽器(Google Chrome):按下“Ctrl-Shift-R”(Mac上為“⌘-Shift-R”)
- IE(Internet Explorer):按住“Ctrl”鍵再點擊“刷新”,或按下“Ctrl-F5”
- Opera:在“工具→首選項”中清除緩存
var templateTags = ["s", "del"].join(", "); var templateClasses = [".heimu", ".colormu", ".just-kidding-text"]; var templateStr = templateClasses.join(", ") + "," + templateTags; function templateFix() { var target = $(); Array.from(document.getElementById("mw-content-text").querySelectorAll(templateStr)).forEach(function (ele) { if (ele.isTemplateFixed === "true") { return; } ele.isTemplateFixed = true; var subElements = Array.from(ele.querySelectorAll(templateStr)); if (subElements.length > 0) { target.push(ele); subElements.forEach(function (subElement) { subElement.isTemplateFixed = true; templateClasses.forEach(function (cls) { if (!isMGPMGUser) { subElement.classList.remove(cls.substring(1)); } }); }); console.info("TemplateFix", ele, subElements); } }); /* 來源:https://zh.moegirl.org.cn/MediaWiki:Gadget-site-js.js 本文引自萌娘百科(https://zh.moegirl.org.cn ),文字内容默认使用《知识共享 署名-非商业性使用-相同方式共享 3.0》协议。 */ .just-kidding-text a, a .just-kidding-text { color: rgb(86, 119, 173); } .just-kidding-text a.new, a.new .just-kidding-text { color: rgb(186, 100, 100); } .just-kidding-text .external, .external .just-kidding-text, .just-kidding-text .extiw, .extiw .just-kidding-text { color: rgb(112, 140, 187); }