编程猫小功能优化

bcm细微功能变化,例如精选显示等等

目前為 2023-06-15 提交的版本,檢視 最新版本

// ==UserScript==
// @name         编程猫小功能优化
// @namespace    https://shequ.codemao.cn/user/3348695
// @version      1.1.45.191981
// @description  bcm细微功能变化,例如精选显示等等
// @author       鱼丶
// @match        *://shequ.codemao.cn/work/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==

function $(name){
    return document.querySelectorAll(name);
}

function a(){
    let lable = $(".r-work-c-work_interaction--labels_container");
   // .style["min-width"] = "463px";
    if ((lable.length > 0) && (lable.indexOf('<span class="r-work-c-work_interaction--label">新作喵喵看</span>') === -1)){
        let newLable = document.createElement("span");
        newLable.className = "r-work-c-work_interaction--label";
        newLable.innerHTML = "点猫精选";
        lable[0].appendChild(newLable);
    }
}
setTimeout(a, 4000);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址