Skip to content

Instantly share code, notes, and snippets.

@dance2die
Last active September 21, 2021 05:02
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 dance2die/8283ffcbe562c26687e5128ee88ed3af to your computer and use it in GitHub Desktop.
Save dance2die/8283ffcbe562c26687e5128ee88ed3af to your computer and use it in GitHub Desktop.
Add a button on "Subscriptions" panel on Youtube.com
let bt = document.createElement('button')
bt.appendChild(document.createTextNode('Close'))
bt.addEventListener('click', function(e) {
this.parentElement.style.display = 'none';
});
// Subscriptions panel
let subEl = document.querySelector("#sections > ytd-guide-section-renderer:nth-child(2)")
subEl.prepend(bt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment