"使用者:Uwu/text.css" 修訂間的差異

出自 淡水維基館
前往: 導覽搜尋
行 1: 行 1:
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,
 
.just-kidding-text a,
 
a .just-kidding-text {
 
a .just-kidding-text {
行 42: 行 13:
 
     color: rgb(112, 140, 187);
 
     color: rgb(112, 140, 187);
 
}
 
}
 +
 +
/*
 +
來源:https://zh.moegirl.org.cn/MediaWiki:Gadget-site-js.js
 +
本文引自萌娘百科(https://zh.moegirl.org.cn ),文字内容默认使用《知识共享 署名-非商业性使用-相同方式共享 3.0》协议。
 +
*/

於 2021年7月1日 (四) 13:04 的修訂

.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);
}

/*
來源:https://zh.moegirl.org.cn/MediaWiki:Gadget-site-js.js
本文引自萌娘百科(https://zh.moegirl.org.cn ),文字内容默认使用《知识共享 署名-非商业性使用-相同方式共享 3.0》协议。
*/