Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

document.querySelectorAll('p').forEach(p => p.dispatchEvent(new Event('mousedown')))


Or use 'mouseover'. It will show some different emojis now and then.


const pTags = document.querySelectorAll('p'); pTags.forEach((p) => { while (!p.textContent.includes('EMOJI')) { p.dispatchEvent(new MouseEvent('mouseover')); } });

Need to replace EMOJI with what you want

Can't be bothered writing code that could add a delay so it would look like a pokie machine.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: