Skip to content
← Back to Community
bookmarklet autoclicker
Profile icon
CoolGuy27

does anyone know a bookmarklet autoclicker?

Answered by KevinChen125 [earned 5 cycles]
View Answer
Voters
Profile icon
RoshanDronadula
Profile icon
AlexanderVasyli
Profile icon
ISMAELQUINTANA1
Profile icon
ArcherWenck
Profile icon
kingking30
Profile icon
memekakra90909090
Profile icon
BrodyDevlin
Profile icon
AshtonDaniels
Profile icon
kylerW102
Profile icon
OmarVazquez4
Comments
hotnewtop
Profile icon
KevinChen125

actualy if you need one better than that use this: javascript: (function() { var clickerIsMouseDown = false; var clickerCurrentMouseTarget = document.body; document.body.addEventListener('mouseup', () => { clickerIsMouseDown = false; }); document.body.addEventListener('mousedown', () => { clickerIsMouseDown = true; }); document.body.addEventListener('mousemove', (e) => { clickerCurrentMouseTarget = e.target }); setInterval(() => { if (clickerIsMouseDown) clickerCurrentMouseTarget.click(); }, 0); })();

Profile icon
CoolGuy27

@KevinChen125 how did you even dig up this way old post? also thx for the better clicker

Profile icon
KevinChen125

just hold the button to autoclick and let go when done make sure to click the bookmark first

Profile icon
memekakra90909090

javascript:var DELAY = 0;var autoClickerStyleElement = document.createElement("style");autoClickerStyleElement.innerHTML="*{cursor: crosshair !important;}";document.body.appendChild(autoClickerStyleElement);function addClicker(e) {if(!e.isTrusted) {return;}if(e.target.classList.contains("auto-clicker-target")) {e.target.classList.remove("auto-clicker-target");} else {e.target.classList.add("auto-clicker-target");}document.body.removeChild(autoClickerStyleElement);document.body.removeEventListener("click", addClicker);e.preventDefault();autoClick(e.target);}function autoClick(element) {if(element.classList.contains("auto-clicker-target")) {element.click();setTimeout(function(){ autoClick(element); }, DELAY);}}document.body.addEventListener("click", addClicker, 0);he

Profile icon
CoolGuy27

@VihanNetra1 why do new people keep finding this old post

Profile icon
EthanHudson6

Can you pls add code to make it stop? It's killing me lmfao

Profile icon
tussiez

Yes.

Profile icon
tussiez

@tussiez
If you mean a webpage autoclicker, this is mine:
EDIT: Fixed error in code

javascript:setTimeout(function(){var n,e=prompt("Autoclick speed? Less is faster"),t=0,l=0,c=setInterval(function(){null!=n&&null!=n&&n.click()},e);document.body.addEventListener("keyup",function(e){"`"==e.key&&(null!=c?(clearInterval(c),c=void 0,alert("Stopped clicking")):c=setInterval(function(){null!=n&&null!=n&&n.click()},e))}),document.body.addEventListener("mousemove",function(e){t=e.clientX,l=e.clientY,n=document.elementFromPoint(t,l)})});```
Profile icon
CoolGuy27

@tussiez I don't seem to understand how to activate it, could you clarify?

Profile icon
tussiez

@CoolGuy27 Click on the bookmarklet.

Profile icon
tussiez

@CoolGuy27 Sorry, the code is bugged. In a minute or so I'll post the fixed version.

Profile icon
BrodyDevlin

i do

Profile icon
CoolGuy27

@BrodyDevlin Ah yes thanks. Btw how do new users keep finding stuff I posted like 16 months ago?

Profile icon
BrodyDevlin
Profile icon
QuintonDavis

HELP IT WON"T TURN OFF

Profile icon
Coder100

why not make it urself

Profile icon
CoolGuy27

@Coder100 i am not smart enough and trying to learn

Profile icon
xxpertHacker

This isn't too clear, do you mean something that clicks a bookmarklet, or a bookmarklet that clicks stuff?

If you're referring to the former, that isn't possible without native code.

As for the latter, that depends on what you want to be clicked.

Profile icon
CoolGuy27

@xxpertHacker i am referring to the latter, and I honestly don't know what I mean myself

Profile icon
xxpertHacker

@CoolGuy27 Well, can you give a webpage, and an example of what you want clicked? I've made plenty auto clicker scripts.

Profile icon
CoolGuy27

@xxpertHacker https://www.coolmathgames.com/0-idle-breakout
maybe just click wherever the mouse is?

Profile icon
xxpertHacker

@CoolGuy27 Oh, then ig all you'll need is this:

clicker: { "use strict"; const { Number } = self; const milliseconds = Number.parseInt( self.prompt( "How many milliseconds do you want to wait before clicking again?", '1' ), 10 ); if (false === Number.isSafeInteger(milliseconds)) { self.alert("Input was not an integer"); break clicker; } // mouse coordinates let clientX = 0, clientY = 0; const { document } = self; self.setInterval( () => { // document.elementFromPoint should probably never return null, but I'm not sure // not all elements have #click document.elementFromPoint( clientX, clientY )?.click?.(); }, milliseconds ); document.addEventListener( "mousemove", event => { ({ clientX, clientY } = event); }, { passive: true } ); }

Tested it myself.

And the minified bookmarklet:

javascript:clicker:{"use strict";const{Number}=self;const milliseconds=Number.parseInt(self.prompt("How many seconds do you want to wait before clicking again?",'1'),10);if(false===Number.isSafeInteger(milliseconds)){self.alert("Input was not an integer");break clicker;}let clientX=0,clientY=0;const{document}=self;self.setInterval(()=>{document.elementFromPoint(clientX,clientY)?.click?.();},milliseconds);document.addEventListener("mousemove",event=>{({clientX,clientY}=event);},{passive:true});}
Profile icon
CoolGuy27

@xxpertHacker thank you so much!

Profile icon
xxpertHacker

@CoolGuy27 Updated

Profile icon
RexGREEN

@xxpertHacker how do i make it stop?

Profile icon
xxpertHacker

@RexGREEN Didn't design it with that in mind, it never does.

Profile icon
MasonWalker6

@xxpertHacker how do i do it doesnt work

Profile icon
WilliamLang1
Profile icon
KingMike36
Profile icon
CoolGuy27

@KingMike36 @MasonWalker6 Copy the minified bookmarklet, make a new bookmark, and use this as a link.
Here's a vid on how:
https://www.youtube.com/watch?v=q-Y0bnx6Ndw

Profile icon
KylanJensen
Profile icon
CoolGuy27

@KylanJensen Because

Profile icon
ColtRed

@CoolGuy27
HAHA THANK GOD FOR MY TRASH INTERNET
IM UN RICKROLLABLE

Profile icon
CoolGuy27
Profile icon
[deleted]

@CoolGuy27 how do i make it stop