Skip to content

Commit 624e226

Browse files
committed
优化 [区分问题文章]、[直达问题按钮] 样式
1 parent 715ac4b commit 624e226

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Zhihu-Enhanced.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ function addToQuestion() {
928928

929929
// 一开始加载的信息流 + 添加按钮样式
930930
if (location.pathname === '/search') {
931-
document.lastChild.appendChild(document.createElement('style')).textContent = `a.zhihu_e_toQuestion {font-size: 13px !important;font-weight: normal !important;padding: 1px 6px 0 !important;border-radius: 2px !important;display: inline-block !important;vertical-align: top !important;height: 21px !important;line-height: 21px !important;margin-top: 1.9px !important;}`;
931+
document.lastChild.appendChild(document.createElement('style')).textContent = `a.zhihu_e_toQuestion {font-size: 13px !important;font-weight: normal !important;padding: 1px 6px 0 !important;border-radius: 2px !important;display: inline-block !important;vertical-align: top !important;height: 20.67px !important;line-height: 20.67px !important;margin-top: 2px !important;}`;
932932
addSetInterval_('h2.ContentItem-title a:not(.zhihu_e_tips)');
933933
} else {
934934
document.lastChild.appendChild(document.createElement('style')).textContent = `a.zhihu_e_toQuestion {font-size: 13px !important;font-weight: normal !important;padding: 1px 6px 0 !important;border-radius: 2px !important;display: inline-block !important;vertical-align: top !important;margin-top: 4px !important;}`;

0 commit comments

Comments
 (0)