这是一个创建于 182 天前的主题,其中的信息可能已经有所发展或是发生改变。
头部油猴都给写了就省略了,后面如下,供有同样困扰的朋友参考
(function() {
'use strict';
// 创建一个样式元素
var style = document.createElement('style');
style.type = 'text/css';
// 定义 CSS 规则
style.innerHTML = `
a, h1, .topic_content, .markdown_body, .reply_content {
font-weight: bold;
color: #666666 !important;
}
.count_livid, meta {
background-color: #000000 !important;
}
`;
// 将样式添加到文档头部
document.head.appendChild(style);
})();
2 条回复 • 2024-08-22 12:44:54 +08:00
 |
|
1
xubeiyan 180 天前
您这和将网页由黑白变为彩色写个* {filter: none !important; } 有什么区别……好一点的做法是把对应的样式替换掉(
|
 |
|
2
w2er 180 天前 via Android
@ xubeiyan 说的有道理,谢谢提醒,我开始只是挨个把涉及到的标签抄了过去,然后试了个能接受的颜色,后来能用就没再管啦
|