june_ — 4/14/2022, 1:52:44 PM

idea: wasteof.notifier extension

scratch notifier but for wasteof

♥ 2 ↩ 0 💬 2 comments

comments

oren:
async function setup() {
  await Notification.requestPermission();
}
function checkForNewMessages() {
  const notifsCount = document.getElementsByClassName('absolute flex bg-red-500 text-white text-xs content-center justify-center items-center p-2 h-4 rounded-md')[0].innerText

  if (typeof notifsCount !== 'undefined') {
    if (notifsCount !== prevCount) {
      const notify = new Notification('new messages on wasteof.money')
      prevCount = notifsCount
    }
  }
}
setup()
setInterval(checkForNewMessages, 60000)
4/14/2022, 3:43:08 PM
june_:

maybe ill do that, and use your wasteof client too

8/25/2022, 3:29:15 PM