Skip to content

Instantly share code, notes, and snippets.

@Noxturnix
Last active October 24, 2021 12:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save Noxturnix/4a55ae91d563204904d9483b5ba0c99f to your computer and use it in GitHub Desktop.
Save Noxturnix/4a55ae91d563204904d9483b5ba0c99f to your computer and use it in GitHub Desktop.
POOOOOP!
/*
* Legit auto pop by Noxturnix
* Version 0.3
*
* How to use:
* 1. Go to https://popcat.click/
* 2. Press F12
* 3. Go to "Console" tab
* 4. Ignore the warning. There's no such malicious codes in this script. You can try to understand the code if you want
* 5. Copy and paste this script
* 6. Hit ENTER
*
* The script will send 800 keypresses every 30 seconds (due to limits) and will automatically
* reset the max sequential counts to bypass the ban (triggered pop cat). See `legitResetSequentialMaxPops()`
*
* Make sure to lower the volume ;)
*/
let keyDownEvent = new KeyboardEvent("keydown", { key: "space" });
let keyUpEvent = new KeyboardEvent("keyup", { key: "space" });
function legitPop() {
document.dispatchEvent(keyDownEvent);
document.dispatchEvent(keyUpEvent);
}
async function legitMassPop(pop_count) {
for (let i = 0; i < pop_count; i++) {
legitPop();
}
}
function legitClearCookie(cookie_name) {
let cookies = document.cookie.split(";").map((cookieString) => {
let cookieArray = cookieString.trim().split("=");
return {
name: cookieArray[0] ? cookieArray[0] : "",
propertyString: cookieArray[1] ? cookieArray[1] : ""
};
});
let filteredCookies = cookies.filter(
(cookie) =>
cookie.propertyString && cookie.name.toLowerCase() !== cookie_name
);
let cookieStringArray = filteredCookies.map((cookie) =>
cookie.name.concat("=").concat(cookie.propertyString)
);
let cookieString = cookieStringArray.join("; ");
document.cookie = cookieString;
}
function legitResetSequentialMaxPops() {
let vueElement = document.getElementById("app").__vue__;
vueElement.sequential_max_pops = 0;
}
function legitMassPopProcess(pop_count, cookie_name) {
legitClearCookie(cookie_name);
legitResetSequentialMaxPops();
legitMassPop(pop_count);
}
function legitStartAutomation(pop_count, interval = 30e3, cookie_name = "bot") {
legitMassPopProcess(pop_count, cookie_name);
setInterval(() => {
legitMassPopProcess(pop_count, cookie_name);
}, interval);
}
legitStartAutomation(800);
@DearTanakorn
Copy link

DearTanakorn commented Aug 14, 2021

that worked! and didn't got ban from site thx 💕

@PNZStudio
Copy link

Nice ✨

@JapanBall
Copy link

This is how we grew rapidly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment