[error] script [ auto-clicker ] stopped with error in line 2 at column 6 [error] SyntaxError ( "no viable alternative at input 'DELAY'", )
im not sure how to fix this ive tried to make the input delay vary between 0-0.1 so that is has a alternative but it didnt work heres the code
javascript; const DELAY = 0; const 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(() => { autoClick(element); }, DELAY); } }document.body.addEventListener('click', addClicker, 0);