Browse Source

Fix Discord unread count

pull/2636/head
Guangcong Luo 5 years ago committed by GitHub
parent
commit
e0881c56b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      api/services.json

2
api/services.json

@ -203,7 +203,7 @@
"type": "messaging", "type": "messaging",
"allow_popups": false, "allow_popups": false,
"manual_notifications": false, "manual_notifications": false,
"js_unread": "function checkUnread(){var e=0;document.querySelectorAll(\"[class*=badgeWrapper]\").forEach(a=>{var r=parseInt(a.innerText);Number.isNaN(r)||(e+=r)}),updateBadge(0,e)}function updateBadge(e,a){rambox.setUnreadCount(a)}setInterval(checkUnread,3e3);", "js_unread": "function checkUnread(){rambox.setUnreadCount(document.querySelectorAll('[class^=lowerBadge]').length)}setInterval(checkUnread,3e3);",
"userAgent": "", "userAgent": "",
"note": "", "note": "",
"titleBlink": true, "titleBlink": true,

Loading…
Cancel
Save