Last active
March 20, 2024 13:06
-
-
Save phyesix/80b0d7e3c4c23cfb43c9c3fc06cb009d to your computer and use it in GitHub Desktop.
Hacker News Main Page Clicker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HACKERNEWS | |
document.querySelectorAll('[id^=up].clicky:not(.nosee)').forEach(function(e ,i) { | |
setTimeout(() => { | |
e.click(); | |
let currentLink = e.parentNode.parentNode.nextElementSibling.querySelector('a').getAttribute('href'); | |
window.open(currentLink, '_blank'); | |
}, i * 1000 * (Math.floor(Math.random() * 6) + 1)); | |
}); | |
// HACKERNEWS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment