// ==UserScript== // @name Infinity新标签页图标名称适配DarkReader // @namespace https://github.com/iMortRex // @version 0.0.1 // @description 让Infinity新标签页图标名称颜色适配DarkReader // @author Mort Rex // @run-at document-start // @match https://inftab.com/ // @grant GM_addStyle // @license MIT // @downloadURL none // ==/UserScript== (function () { 'use strict'; if (document.querySelector('html').getAttribute('data-darkreader-scheme') == "dark") { GM_addStyle('body {--icon-font-color: var(--darkreader-neutral-text) ! important}'); } })();