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.