Last active
October 24, 2021 12:57
-
-
Save Noxturnix/4a55ae91d563204904d9483b5ba0c99f to your computer and use it in GitHub Desktop.
POOOOOP!
This file contains hidden or 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
/* | |
* 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); |
Nice ✨
This is how we grew rapidly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
that worked! and didn't got ban from site thx 💕