Last active
September 25, 2022 17:30
-
-
Save nathnolt/af13f215164e3ac2b8d5a43982abae9a to your computer and use it in GitHub Desktop.
YouTube show full video titles Chrome snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$$('#video-title').forEach(x => { | |
let sty = x.style | |
setStyle(x, { | |
overflow: 'visible', | |
maxHeight: 'none', | |
lineHeight: 1.2, | |
display: 'block', | |
}) | |
}) | |
function setStyle(el, obj) { | |
const sty = el.style | |
for(let k in obj) { | |
sty[k] = obj[k] | |
} | |
} | |
console.clear() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment