Skip to content

Commit

Permalink
Update shortcuts.js cut&paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
raszpl authored Jul 5, 2024
1 parent e369e60 commit e828ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js&css/web-accessible/www.youtube.com/shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ ImprovedTube.shortcutTranscript = function () {
descriptionTranscript ? descriptionTranscript.click() : document.querySelector('[target-id*=transcript]')?.removeAttribute('visibility');
} else {
const transcriptButton = document.querySelector('ytd-video-description-transcript-section-renderer button[aria-label]');
visibilityButton ? visibilityButton.click() : document.querySelector('[target-id*=transcript] #visibility-button button')?.click();
transcriptButton ? transcriptButton.click() : document.querySelector('[target-id*=transcript] #visibility-button button')?.click();
}
if (!descriptionTranscript && transcriptButton) {
console.error('shortcutTranscript: Cant fint proper Enble button, falling back to unreliable bruteforce method');
Expand Down

0 comments on commit e828ff6

Please sign in to comment.