File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 131131
132132 // URL 匹配正则表达式
133133 let patt_thread = / \/ t h r e a d - \d + - \d + \- \d + .h t m l / ,
134- patt_thread_2 = / m o d \= v i e w t h r e a d / ,
135134 patt_forum = / \/ f o r u m - \d + - \d + \. h t m l / ,
136- patt_forum_2 = / m o d \= f o r u m d i s p l a y / ,
137- patt_guide = / m o d \= g u i d e \& v i e w \= ( h o t | d i g e s t ) / ,
138- patt_reply = / m o d \= p o s t & a c t i o n \= r e p l y / ,
139- patt_reply_2 = / e x t r a \= p a g e \% 3 D 1 & p a g e \= /
135+ patt_guide = / m o d \= g u i d e \& v i e w \= ( h o t | d i g e s t ) /
140136
141137 // URL 判断
142- if ( patt_thread . test ( location . pathname ) || patt_thread_2 . test ( location . search ) ) {
138+ if ( patt_thread . test ( location . pathname ) || location . search . indexOf ( 'mod=viewthread' ) > - 1 ) {
143139 // 帖子内
144140 if ( menu_value ( 'menu_thread_pageLoading' ) ) curSite = DBSite . thread ;
145141 if ( menu_value ( 'menu_autoReply' ) ) autoReply ( ) ; // 如果有隐藏内容,则自动回复
146- pageLoading ( ) ; // 自动翻页
147142 if ( menu_value ( 'menu_scrollToShowhide' ) ) setTimeout ( function ( ) { window . scrollTo ( 0 , document . querySelector ( '.showhide' ) . offsetTop ) } , 500 ) ; // 滚动至隐藏内容
148- } else if ( patt_forum . test ( location . pathname ) || patt_forum_2 . test ( location . search ) ) {
143+ } else if ( patt_forum . test ( location . pathname ) || location . search . indexOf ( 'mod=forumdisplay' ) > - 1 ) {
149144 // 各板块帖子列表
150145 curSite = DBSite . forum ;
151146 if ( menu_value ( 'menu_cleanTopPost' ) ) cleanTopPost ( ) ; // 清理置顶帖子
152- pageLoading ( ) ; // 自动翻页
153147 } else if ( patt_guide . test ( location . search ) ) {
154148 // 导读帖子列表
155149 curSite = DBSite . guide ;
156- pageLoading ( ) ; // 自动翻页
157150 }
158151
152+ pageLoading ( ) ; // 自动翻页
153+
159154
160155 // 判断是否登陆
161156 function checkLogin ( ) {
Original file line number Diff line number Diff line change 109109
110110 // URL 匹配正则表达式
111111 let patt_thread = / \/ t h r e a d - \d + - \d + \- \d + .h t m l / ,
112- patt_thread_2 = / m o d \= v i e w t h r e a d / ,
113112 patt_forum = / \/ f o r u m - \d + - \d + \. h t m l / ,
114- patt_forum_2 = / m o d \= f o r u m d i s p l a y / ,
115113 patt_guide = / m o d \= g u i d e \& v i e w \= ( h o t | d i g e s t ) /
116114
117115 // URL 判断
118- if ( patt_thread . test ( location . pathname ) || patt_thread_2 . test ( location . search ) ) {
116+ if ( patt_thread . test ( location . pathname ) || location . search . indexOf ( 'mod=viewthread' ) > - 1 ) {
119117 // 帖子内
120118 if ( menu_value ( 'menu_thread_pageLoading' ) ) curSite = DBSite . thread ;
121119 // 自动显示帖子内被隐藏的回复
122120 showPosts ( ) ;
123- } else if ( patt_forum . test ( location . pathname ) || patt_forum_2 . test ( location . search ) ) {
121+ } else if ( patt_forum . test ( location . pathname ) || location . search . indexOf ( 'mod=forumdisplay' ) > - 1 ) {
124122 // 各板块帖子列表
125123 curSite = DBSite . forum ;
126124 } else if ( patt_guide . test ( location . search ) ) {
You can’t perform that action at this time.
0 commit comments