2018.09.20
Chrome, Firefox 可以通用(因為只是CSS)
都是從userstyles網站上找到的
Chinese Font 中文黑體
個人偏好使用Google提供的開源字型思源黑體,某些網頁撥放器的音量鍵可能會有問題(如
redtube)
reference:
- https://userstyles.org/styles/107714/chinese-font
- https://userstyles.org/styles/31267/global-dark-style-changes-everything-to-dark (regular expression的部分)
@-moz-document domain("google.com.tw"), domain("backpackers.com.tw"), domain("mobile01.com"), domain("wikipedia.org"), domain("ck101.com"), domain("appledaily.com.tw"), domain("dongtw.com"), domain("circle.tw"), domain("flipboard.com"), domain("techbang.com"), domain("ipeen.com.tw"), domain("businessweekly.com.tw"), domain("facebook.com"), domain("niusnews.com"), domain("udn.com"), domain("hbrtaiwan.com"), domain("dcard.tw"), domain("yahoo.com"), domain("inside.com.tw"), domain("taobao.com"), domain("wowlavie.com"), domain("cn.nytimes.com"), domain("businesstoday.com.tw"), domain("theinitium.com"), domain("buzzorange.com"), domain("ettoday.net"), domain("pansci.asia"), domain("bnext.com.tw"), domain("line.me"), domain("news.google.com"), domain("books.com.tw"), regexp("https?://(?!(www.redtube.com|forum.example.com)).*") {
html, body, h1, h2, h3, h4, h5, h6, p, a, div {font-family: "Noto Sans CJK TC", "Noto Sans CJK TC", "Source Han Sans", "Yu Gothic UI", "Yu Gothic", "Hiragino Sans GB", "微軟正黑體", "Microsoft YaHei", "MHei", "PingHei", Helvetica, "Helvetica Neue", Verdana, SegeoUI, Arial, sans-serif !important;}
}
PTT web article 美化
reference: https://userstyles.org/styles/107277/ptt-cc-article-view-dark
@-moz-document domain("ptt.cc") {
.article-meta-tag {
background: transparent;
color: #f3f3f3;
padding: 0;
}
.article-metaline, .article-meta-value, .article-metaline-right {
background: transparent;
color: #f3f3f3;
}
.article-metaline-right {
opacity: .5;
}
.article-metaline:first-child {
font-size: 15px;
padding-top: 75px;
}
.article-metaline:nth-child(3) .article-meta-tag {
display: none;
}
.article-metaline:nth-child(3) .article-meta-value {
left: 0;
padding: 0;
position: absolute;
top: 30px;
font-size: 24px;
font-weight: bold;
}
.article-metaline:nth-child(4) {
padding-bottom: 15px;
border-bottom: 1px solid #414141;
font-size: 15px;
}
[class^="article-metaline"]:nth-child(3n+1) [class^="article-meta"] {
color: #999;
}
}
沒有留言:
張貼留言