Created
July 23, 2020 12:59
-
-
Save xioxin/d8dbe82cbf762bb10652cdfd9fda3d93 to your computer and use it in GitHub Desktop.
eh阅读状态
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name eh阅读状态 | |
// @namespace com.xioxin.EhTagReadStatus | |
// @version 0.1 | |
// @description 利用css ":visited" 特性在标题前增加阅读状态指示 | |
// @author xioxin | |
// @include *://exhentai.org/* | |
// @include *://e-hentai.org/* | |
// @grant GM_addStyle | |
// ==/UserScript== | |
GM_addStyle(` | |
.itg a .glink::before { | |
content: "●"; | |
color: #1a9317; | |
padding-right: 4px; | |
} | |
.itg a:visited .glink::before { | |
color: #aaa; | |
}`); |
这个不应该是stylish干的活吗?
@-moz-document domain("e-hentai.org"), domain("exhentai.org") {
.itg a .glink::before {
content: "●";
color: #1a9317;
padding-right: 4px;
}
.itg a:visited .glink::before {
color: #aaa;
}
}
因为我并不使用stylish
greasyfork可以添加样式,既可以用stylish装,也可以用tampermonkey装
写法目前我没找到文档,只能参考他们已有的 https://greasyfork.org/zh-CN/scripts?language=css
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请先安装 https://www.tampermonkey.net/ 然后点击右上角的 Raw 安装