Skip to content

Instantly share code, notes, and snippets.

@paulera
Last active September 13, 2019 01:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save paulera/e78fa4118b7e8dc46ae507e241c1a9e5 to your computer and use it in GitHub Desktop.
Snippet to dislike all comments in a Youtube video
/**
* 1. Open a youtube video
* 2. Keep scrolling down unitl all comments are shown
* 3. Right click
* 4. Select inspect
* 5. Open the Console tab
* 6. Copy and paste the code below and press enter
**/
document.querySelectorAll("ytd-toggle-button-renderer#dislike-button").forEach(function(elem) { elem.click(); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment