Skip to content

Instantly share code, notes, and snippets.

@phyesix
Last active March 20, 2024 13:06
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 phyesix/ed202f5dfded220f8f9bfed62c27bf61 to your computer and use it in GitHub Desktop.
Save phyesix/ed202f5dfded220f8f9bfed62c27bf61 to your computer and use it in GitHub Desktop.
Product Hunt Main Page Clicker
//PH
document.querySelectorAll('button[class*=styles_feed]:not([class*=styles_upvoted])').forEach(function(e ,i) {
setTimeout(() => {
e.parentElement.querySelector('a[rel="noopener"]').click();
e.click();
}, i * 1000 * (Math.floor(Math.random() * 6) + 1));
});
//PH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment