改百度搜索的导航栏字体为黑色

防止屏蔽广告后看不清字体

目前为 2024-12-03 提交的版本。查看 最新版本

// ==UserScript==
// @name         改百度搜索的导航栏字体为黑色
// @version      0.6
// @description  防止屏蔽广告后看不清字体
// @author       ChatGPT
// @run-at       document-start
// @match        https://www.baidu.com/*
// @match        https://m.baidu.com/*
// @grant        none
// @namespace https://gf.qytechs.cn/users/452911
// ==/UserScript==

(function() {
    'use strict';
    const url = window.location.href;
    if (url.indexOf("wd=") !== -1 || url.indexOf("word=") !== -1) {
        const style = document.createElement('style');
        style.innerHTML = `
            span.se-htp-main-tab-text,span.se-tab-tx.se-tab-cur.se-tab-nxt {
                color: black !important;
            }
            span.se-tab-tx, span.se-head-tabfilter-text {
                color: #666666;
            }
        `;
        document.head.appendChild(style);
    }
})();

QingJ © 2025

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