Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube committed Jul 28, 2024
1 parent dba68d0 commit fc04dd5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js&css/web-accessible/www.youtube.com/appearance.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ ImprovedTube.transcript = function (el) { if (ImprovedTube.storage.transcript ==
if (available) {
const descriptionTranscript = el.querySelector('ytd-video-description-transcript-section-renderer button[aria-label]');
descriptionTranscript ? descriptionTranscript.click() : el.querySelector('[target-id*=transcript]')?.removeAttribute('visibility');
}
if ( yt.config_.EXPERIMENT_FLAGS.kevlar_watch_grid === true ) { el.querySelector('[target-id*=transcript]').setAttribute('z-index', '98765') }
}
};
/*----------------------------------------------------------------
CHAPTERS
Expand All @@ -320,7 +321,8 @@ ImprovedTube.chapters = function (el) { if (ImprovedTube.storage.chapters === tr
if (available) {
const modernChapters = el.querySelector('[modern-chapters] #navigation-button button[aria-label]');
modernChapters ? modernChapters.click() : el.querySelector('[target-id*=chapters]')?.removeAttribute('visibility');
}
if ( yt.config_.EXPERIMENT_FLAGS.kevlar_watch_grid === true ) { el.querySelector('[target-id*=chapters]').setAttribute('z-index', '98765') }
}
};
/*------------------------------------------------------------------------------
LIVECHAT
Expand Down

0 comments on commit fc04dd5

Please sign in to comment.