1 2 3 4 5 6 7 8 9 10 11 12
module.exports = Ferdi => { const getMessages = () => { const allMessages = Math.round( document.querySelectorAll( '#global_filters .top_left_all_messages .count .value', )[0].textContent, ); Ferdi.setBadge(allMessages); }; Ferdi.loop(getMessages); };