blob: d4b8a9776034d0a9290dfb121a2c55d8acff4127 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
module.exports = Ferdi => {
const getMessages = () => {
const { title } = document;
const regex = /\d+/;
Ferdi.setBadge(regex.test(title) ? Number(regex.exec(title)[0]) : 0);
};
Ferdi.loop(getMessages);
};
|