← Back to context Comment by peebeebee 1 year ago document.querySelectorAll('p').forEach(p => p.dispatchEvent(new Event('mousedown'))) 2 comments peebeebee Reply kuschkufan 1 year ago Or use 'mouseover'. It will show some different emojis now and then. thomasfromcdnjs 1 year ago 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 wantCan't be bothered writing code that could add a delay so it would look like a pokie machine.
thomasfromcdnjs 1 year ago 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 wantCan't be bothered writing code that could add a delay so it would look like a pokie machine.
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.