Skip to content

Instantly share code, notes, and snippets.

@nathnolt
Last active September 25, 2022 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathnolt/af13f215164e3ac2b8d5a43982abae9a to your computer and use it in GitHub Desktop.
Save nathnolt/af13f215164e3ac2b8d5a43982abae9a to your computer and use it in GitHub Desktop.
YouTube show full video titles Chrome snippet
$$('#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