Skip to content

Instantly share code, notes, and snippets.

@nawawi
Last active August 18, 2021 10:41
Show Gist options
  • Save nawawi/a120c5af20128d0bef362f9c77fe7c01 to your computer and use it in GitHub Desktop.
Save nawawi/a120c5af20128d0bef362f9c77fe7c01 to your computer and use it in GitHub Desktop.
/*
1) Open https://popcat.click
2) Open console (F12)
3) Insert code
*/
function run_pcat() {
var event = new KeyboardEvent( 'keydown', {
key: 'g',
ctrlKey: true
} );
window.pcat_start = setInterval( function() {
for ( i = 0; i < 100; i++ ) {
document.dispatchEvent( event );
}
}, 0 );
console.log( "clicking popcat" );
setTimeout( function() {
clearInterval( window.pcat_start );
console.log( "popcat finish" );
setTimeout( function() {
run_pcat();
}, 4000 );
}, 3000 );
};
run_pcat();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment