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

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

目前为 2023-04-04 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name 改百度搜索的导航栏字体为黑色
  3. // @version 0.1
  4. // @description 防止屏蔽广告后看不清字体
  5. // @author You
  6. // @run-at document-start
  7. // @match https://www.baidu.com/*
  8. // @match https://m.baidu.com/*
  9. // @license MIT
  10. // @grant none
  11. // @namespace https://gf.qytechs.cn/users/452911
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. const style = document.createElement('style');
  17. style.innerHTML = `
  18. span.se-tab-tx.se-tab-cur.se-tab-nxt,
  19. span.se-tab-tx,
  20. span.se-head-tabfilter-text {
  21. color: black;
  22. }
  23. `;
  24. document.head.appendChild(style);
  25. // Your code here...
  26. })();

QingJ © 2025

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