Comment by Loeffelmann
1 year ago
This worked on firefox
const event = new Event("mousedown")
const pArr = Array.from(document.querySelectorAll("p"))
function switchSymbol(target) {
target.dispatchEvent(event);
}
function switchUntil(target, until) {
while (target.innerText !== until) {
switchSymbol(target);
}
}
for (const p of pArr) {
switchUntil(p, "")
}
Change the second argument of switchUntil to the emoji you want. HN doesn't allow emojis
No comments yet
Contribute on Hacker News ↗