Re:Show HN: CTRL-F for YouTube Videos
by madacol on Tuesday April 16, 2024 @05:51PM
(#40057666)
As a userscript https://github.com/madacol/web-automation/blob/master/usersc...
[ Parent
| on HN ]
Vastly simplified userscript to only show transcript when pressing Ctrl+f
https://github.com/madacol/web-automation/blob/master/usersc...
// ==UserScript==
// @name Show transcript on Ctrl+f
// @match https://www.youtube.com/watch*
// @grant none
// @version 1.0
// @author madacol
// ==/UserScript==
document.addEventListener('keydown', event => {
if (event.ctrlKey && event.key === 'f')
document.querySelector('button[aria-label="Show transcript"]').click()
})