@@ -1286,20 +1286,19 @@ function topTime_people() {
12861286
12871287// 完整显示时间 + 置顶显示时间 - 专栏/文章
12881288function topTime_zhuanlan ( ) {
1289- let t = document . querySelector ( '.ContentItem-time' ) ; if ( ! t ) return
1289+ let t = document . querySelector ( '.ContentItem-time' ) ; if ( ! t ) return
12901290 // 完整显示时间
1291- if ( t . innerText . indexOf ( '编辑于' ) > - 1 && ! ( t . classList . contains ( 'xiu-time' ) ) ) {
1292- let bianjiyu = t . innerText ;
1291+ if ( t . textContent . indexOf ( '编辑于' ) > - 1 && ! ( t . classList . contains ( 'xiu-time' ) ) ) {
1292+ let tt = t . textContent ;
12931293 t . click ( ) ;
1294- t . innerText = ( t . innerText + "," + bianjiyu )
1294+ t . textContent = ( t . textContent + ' ,' + tt )
12951295 t . classList . add ( 'xiu-time' ) ;
12961296 }
12971297
12981298 //发布时间置顶
12991299 if ( menu_value ( 'menu_publishTop' ) && ! ( document . querySelector ( '.Post-Header > .ContentItem-time' ) ) && ! ( document . querySelector ( '.ContentItem-meta > .ContentItem-time' ) ) ) {
1300- t . style . cssText = 'padding:0px 0px 0px 0px; margin-top: 14px'
1300+ t . style . cssText = 'margin-top: 14px; padding: 0; '
13011301 let temp_time = t . cloneNode ( true ) ;
1302- // t.style.display = 'none';
13031302 if ( location . href . indexOf ( '/column/' ) > - 1 ) {
13041303 document . querySelector ( '.ContentItem-meta' ) . insertAdjacentElement ( 'beforeEnd' , temp_time ) ;
13051304 } else {
@@ -1345,7 +1344,7 @@ function directLink () {
13451344
13461345// 默认高清原图,修改自:https://greasyfork.org/scripts/402808(从 JQuery 改为原生 JavaScript,且精简、优化了代码)
13471346function originalPic ( ) {
1348- document . querySelectorAll ( 'img' ) . forEach ( function ( one ) { if ( one . dataset . original != undefined && one . src != one . dataset . original && one . className != 'comment_sticker' ) { one . src = one . dataset . original } } ) ;
1347+ document . querySelectorAll ( 'img[data-original]:not(.comment_sticker):not(.Avatar) ' ) . forEach ( function ( one ) { if ( one . src != one . dataset . original ) { one . src = one . dataset . original } } ) ;
13491348}
13501349
13511350
0 commit comments