Skip to content

Instantly share code, notes, and snippets.

@somidad
Created January 2, 2018 12:38
Show Gist options
  • Save somidad/4089050d49230df1920a9001516fa241 to your computer and use it in GitHub Desktop.
Save somidad/4089050d49230df1920a9001516fa241 to your computer and use it in GitHub Desktop.
Remove YouTube Red logo for 'Enhancer for YouTube'
var idLogoContainer = document.getElementById('logo-container')
var classLogoRed = idLogoContainer.getElementsByClassName('logo-red')
console.log(classLogoRed)
if (classLogoRed.length) {
var tag = classLogoRed[0]
console.log(tag)
tag.style.backgroundImage = 'none'
console.log(tag.style.background)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment