← Back to context

Comment by peebeebee

1 year ago

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

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.