Skip to content

Instantly share code, notes, and snippets.

@GrayStrider
Created August 17, 2020 07:03
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 GrayStrider/c483f3c2b5cdb20434530ad3f1da6b8a to your computer and use it in GitHub Desktop.
Save GrayStrider/c483f3c2b5cdb20434530ad3f1da6b8a to your computer and use it in GitHub Desktop.
const $$ = (id) => document.getElementById(id)
const $ = (className) => document.getElementsByClassName(className)
setInterval(() => {
container = $$('like-button-renderer')
skipBtn = $('next-button')[0]
if (container.getAttribute('like-status') === 'DISLIKE')
skipBtn.click()
}, 1000)
@Pyrolistical
Copy link

Pyrolistical commented Apr 6, 2022

i turned this into a chrome extension. https://github.com/Pyrolistical/skip-disliked-ytm

not going to bother publishing. you can manually install as so https://developer.chrome.com/docs/extensions/mv3/getstarted/#unpacked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment