Skip to content

Instantly share code, notes, and snippets.

@alvnfaiz
Created August 21, 2021 18:33
Show Gist options
  • Save alvnfaiz/72502f5cb371efcf69c7e6b75253067a to your computer and use it in GitHub Desktop.
Save alvnfaiz/72502f5cb371efcf69c7e6b75253067a to your computer and use it in GitHub Desktop.
// 1. Open Popcat.click
// 2. Open F12 (Console, Tab Network)
// 3. Check request seperti ini
// pop?pop_count=800&captcha_token=03AGdBq27QtkikSZjqoUI0bwXeQYgA2JSCwDih04xKWVkT4ZTTky9GpW0lypn-MlTEbYYT----------------------
//
// Buka aja di tab baru
// 4. isi variable request_url dengan link request di atas
var request_url = "isi Disini";
setInterval(function() {
var xhr = new XMLHttpRequest();
// we defined the xhr
xhr.onreadystatechange = function () {
if (this.readyState != 4) return;
if (this.status == 200) {
var data = JSON.parse(this.responseText);
// we get the returned data
}
// end of state change: it can be after some time (async)
};
xhr.open('GET', request_url, true);
xhr.send();
console.log("ok");
}, 30 * 1000); // 60 * 1000 milsec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment