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