-
-
Save JordenLCH/ddfce03bc2aa46e0d9a9fc2ab8cd5a56 to your computer and use it in GitHub Desktop.
tweak the code to make it support popdog
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
/* | |
1) Open https://popdog.click | |
2) Open console (F12) | |
3) Insert code & run | |
*/ | |
let cps = 10; | |
let event = new Event('mousedown'); | |
setInterval(() => { | |
// click the dog | |
document.getElementById('myImage').dispatchEvent(event); | |
// click the cookie when it's shown | |
// it also can be click even if not shown | |
// run this to try it -> document.getElementById('cookie').dispatchEvent(new Event('mousedown')) | |
(document.getElementById('cookie').style.display === 'block') ? | |
document.getElementById('cookie').dispatchEvent(new Event('mousedown')) : ''; | |
}, 1000 / cps); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment