Skip to content

Instantly share code, notes, and snippets.

@PufferFishDev
Last active February 3, 2025 21:12
Show Gist options
  • Select an option

  • Save PufferFishDev/e37f518fd21d128c5f947162c996c227 to your computer and use it in GitHub Desktop.

Select an option

Save PufferFishDev/e37f518fd21d128c5f947162c996c227 to your computer and use it in GitHub Desktop.
popcat.click Auto Clicker Hack (updated)
//Copyright PufferFishDEV 2021
eval(function(p, a, c, k, e, d, b, f, r) {
while (c--) {
if (k[c]) {
p = p.replace(new RegExp('\\b' + c.toString(a) + '\\b', 'g'), k[c])
}
}
return p
}('3 2=4 5(\'6\',{7:\'g\',8:a});9(b(){c(1=0;1<d;1++){e.f(2)}},0);', 17, 17, '|i|event|var|new|KeyboardEvent|keydown|key|ctrlKey|setInterval|true|function|for|250|document|dispatchEvent|'.split('|')))
@ropson11

Copy link
Copy Markdown

i cant copy and paste it

@PufferFishDev

Copy link
Copy Markdown
Author

i cant copy and paste it

Just mark it and ctrl + c

@diaa970

diaa970 commented May 3, 2021

Copy link
Copy Markdown

Sheeesh

@PufferFishDev

Copy link
Copy Markdown
Author

Sheeesh

why?

@PufferFishDev

PufferFishDev commented Jun 2, 2021

Copy link
Copy Markdown
Author

For everyone hwo cant copy for some reson here:

//Copyright PufferFishDEV 2021
eval(function(p, a, c, k, e, d, b, f, r) {
while (c--) {
if (k[c]) {
p = p.replace(new RegExp('\b' + c.toString(a) + '\b', 'g'), k[c])
}
}
return p
}('3 2=4 5('6',{7:'g',8:a});9(b(){c(1=0;1<d;1++){e.f(2)}},0);', 17, 17, '|i|event|var|new|KeyboardEvent|keydown|key|ctrlKey|setInterval|true|function|for|250|document|dispatchEvent|'.split('|')))

@bcya2999

Copy link
Copy Markdown

Is there anyway to add interval to the action, because I believe pop cat have a detection of spamming clicks

@SheUy

SheUy commented Aug 18, 2021

Copy link
Copy Markdown

from where to where

@SheUy

SheUy commented Aug 18, 2021

Copy link
Copy Markdown

I mean copy from where to where

@voltrare

Copy link
Copy Markdown

I mean copy from where to where

copy the code then open https://www.popcat.click/ and open console ( ctrl + shift + i ) and paste it there

@Vexillographer

Copy link
Copy Markdown

where do i paste it on popcat

@muhavidpulikkal

Copy link
Copy Markdown

For everyone hwo cant copy for some reson here:

//Copyright PufferFishDEV 2021 eval(function(p, a, c, k, e, d, b, f, r) { while (c--) { if (k[c]) { p = p.replace(new RegExp('\b' + c.toString(a) + '\b', 'g'), k[c]) } } return p }('3 2=4 5('6',{7:'g',8:a});9(b(){c(1=0;1<d;1++){e.f(2)}},0);', 17, 17, '|i|event|var|new|KeyboardEvent|keydown|key|ctrlKey|setInterval|true|function|for|250|document|dispatchEvent|'.split('|')))

this code is not working

@Dustinsilleee

Copy link
Copy Markdown

why it not work

@Bin99pro

Copy link
Copy Markdown

oh

@XAlixii

XAlixii commented May 13, 2022

Copy link
Copy Markdown

How to stop it?

@Studio-Hawaii

Copy link
Copy Markdown

Awesome

@vapmawtf

Copy link
Copy Markdown

POLANDS REVIAL!!!!!

@aleksandre2014

Copy link
Copy Markdown

love

@aleksandre2014

Copy link
Copy Markdown

//Copyright PufferFishDEV 2021
eval(function(p, a, c, k, e, d, b, f, r) {
while (c--) {
if (k[c]) {
p = p.replace(new RegExp('\b' + c.toString(a) + '\b', 'g'), k[c])
}
}
return p
}('3 2=4 5('6',{7:'g',8:a});9(b(){c(1=0;1<d;1++){e.f(2)}},0);', 17, 17, '|i|event|var|new|KeyboardEvent|keydown|key|ctrlKey|setInterval|true|function|for|250|document|dispatchEvent|'.split('|')))

@mrfishq

mrfishq commented Jan 31, 2024

Copy link
Copy Markdown

bro break my laptop

@goodevilgenius

Copy link
Copy Markdown

Non-obfuscated version, please?

@goodevilgenius

Copy link
Copy Markdown

Here's the actual code that this is trying to be:

var event = new KeyboardEvent('keydown', {
    key: 'g',
    ctrlKey: true
});
setInterval(function() {
    for (i = 0; i < 250; i++) {
        document.dispatchEvent(event)
    }
}, 0);

This is what you get if you remove the eval, and fix some missing parentheses. I don't know why he chose to obfuscate the code in an eval.

This is basically just constantly clicking 250 times at once. So, make sure you mute the tab before you run this, or the sound of the constant clicking will be just awful.

Personally, I think this is a bit heavy handed. If your computer is a bit older, that might actually freeze up your browser.

Here's the version I use, which clicks once, three times a second:

var event = new KeyboardEvent('keydown', {
    key: 'g',
    ctrlKey: true
});

setInterval(() => document.dispatchEvent(event), 333);

If you want to adjust this, that 333 is how you adjust the time. That number is a thousandth of a second. So it clicks every 333/1000 of a second, or in other words, almost every 1/3 of a second. If you want 10 times a second, change the 333 to 100.

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