File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// ==UserScript==
22// @name 知乎增强 - 置顶显示发布/编辑时间
3- // @version 1.0.1
3+ // @version 1.0.2
44// @author X.I.U
55// @description 回答和文章置顶显示发布时间、编辑时间
66// @match *://www.zhihu.com/*
@@ -118,7 +118,7 @@ function zhuanlan()
118118function search ( )
119119{
120120 $ ( ".ContentItem.AnswerItem, .ContentItem.ArticleItem" ) . each ( function ( ) {
121- console . log ( $ ( this ) . find ( ".ContentItem-time" ) )
121+ // console.log($(this).find(".ContentItem-time"))
122122 if ( ! ( $ ( this ) . find ( ".ContentItem-time" ) . hasClass ( "full" ) ) && $ ( this ) . find ( ".ContentItem-time" ) . length > 0 && $ ( this ) . find ( ".ContentItem-time" ) . find ( "span" ) . text ( ) != null )
123123 {
124124 if ( $ ( this ) . find ( ".ContentItem-time" ) . text ( ) . indexOf ( "发布于" ) == - 1 && $ ( this ) . find ( ".ContentItem-time" ) . text ( ) . indexOf ( "编辑于" ) > - 1 ) //只有"编辑于"时,增加具体发布时间data-tooltip
You can’t perform that action at this time.
0 commit comments