File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,9 +147,9 @@ function getCollapsedAnswerObserver() {
147147 if ( ! mutation . target . classList . contains ( 'RichContent' ) ) continue
148148 for ( const addedNode of mutation . addedNodes ) {
149149 if ( addedNode . nodeType != Node . ELEMENT_NODE ) continue
150- console . log ( addedNode , addedNode . offsetHeight )
150+ // console.log(addedNode, addedNode.offsetHeight)
151151 if ( addedNode . className == 'RichContent-inner' && addedNode . offsetHeight < 400 ) return
152- console . log ( addedNode . offsetHeight )
152+ // console.log(addedNode.offsetHeight)
153153 const button = addedNode . querySelector ( '.ContentItem-actions.Sticky [data-zop-retract-question]' ) ;
154154 if ( button ) {
155155 mutation . target . setAttribute ( 'script-collapsed' , '' ) ;
@@ -866,7 +866,7 @@ function blockType(type) {
866866 document . querySelectorAll ( name ) . forEach ( function ( item ) { blockType_ ( item ) ; } )
867867 } else { // 首页
868868 if ( ! menu_value ( 'menu_blockTypeVideo' ) && ! menu_value ( 'menu_blockTypeArticle' ) ) return
869- if ( menu_value ( 'menu_blockTypeVideo' ) ) document . lastChild . appendChild ( document . createElement ( 'style' ) ) . textContent = `.Card .ZVideoItem-video {display: none !important;}` ;
869+ if ( menu_value ( 'menu_blockTypeVideo' ) ) document . lastChild . appendChild ( document . createElement ( 'style' ) ) . textContent = `.Card .ZVideoItem-video, nav.TopstoryTabs > a[aria-controls="Topstory-zvideo"] {display: none !important;}` ;
870870 name = 'h2.ContentItem-title a:not(.zhihu_e_toQuestion)'
871871 document . querySelectorAll ( name ) . forEach ( function ( item ) { blockType_ ( item ) ; } )
872872 }
You can’t perform that action at this time.
0 commit comments