---
# System prepended metadata

title: Untitled

---

code snipped to extract messageids from ui kudos leaderboard

```
let allList = document.querySelectorAll(".message-subject a")


let messageIds = []


allList.forEach(message => {
    if (message.href) {
        const entireLink = message.href
        const spittedLink =entireLink.split("/").reverse()

        const id = spittedLink[0]
        messageIds.push(id)
    }
})

console.log("messages ids are ", messageIds);
```