用回文好了 可以贴code
我也有类似需求,但我是用 Stylus (https://add0n.com/stylus.html)
来写UserCSS,扩展性更高。
还可以选择要highlight的部份,前提你要会写CSS selector,大部分都不复杂。
例如已下的code是用来highlight 点过的 youtube video.
@-moz-document domain("www.youtube.com") {
a:visited yt-formatted-string#video-title {
color: red !important;
}
a:visited#video-title yt-formatted-string {
color: red !important;
}
a:visited span#video-title {
color: red !important;
}
}
效果:
https://imgur.com/a/c5lf2S9