Browse Source

Update unreadCode of Mattermost, Messenger, Outlook & Wechat

gh-pages
Vulich Fernando 4 years ago committed by GitHub
parent
commit
b04f2adb8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      api/services.json

10
api/services.json

@ -818,7 +818,7 @@
"type": "messaging",
"allow_popups": false,
"manual_notifications": false,
"js_unread": "function checkUnread(){let e=document.querySelectorAll(\".badge\"),n=document.querySelectorAll(\".unread-title\").length||document.querySelectorAll(\".unread-badge\").length,t=0;e.forEach(e=>{\"unreadMentions\"===e.id&&(t+=parseInt(e.innerText))}),updateBadge(n,t)}function updateBadge(e,n){var t=0<n?n:0<e?999999:0;rambox.setUnreadCount(t)}setInterval(checkUnread,3e3);",
"js_unread": "function checkUnread(){let e=document.querySelectorAll(\".badge\"),n=document.querySelectorAll(\".SidebarChannel.unread, .TeamIcon.unread\").length,a=0;e.forEach(e=>{\"unreadMentions\"===e.id&&(a+=parseInt(e.innerText))}),updateBadge(n,a)}function updateBadge(e,n){var a=0<n?n:0<e?999999:0;rambox.setUnreadCount(a)}setInterval(checkUnread,3e3);",
"userAgent": "",
"note": "",
"titleBlink": false,
@ -832,8 +832,8 @@
"url": "https://www.messenger.com/login/",
"type": "messaging",
"allow_popups": false,
"manual_notifications": false,
"js_unread": "",
"manual_notifications": true,
"js_unread": "function checkUnread(){let e=0;document.querySelectorAll('[data-testid=\"mwthreadlist-item\"]').forEach(t=>t.querySelector(\".lrazzd5p\")&&(e+=1)),updateBadge(e)}function updateBadge(e){rambox.setUnreadCount(e)}setInterval(checkUnread,3e3);",
"userAgent": "",
"note": "'To enable desktop notifications, you have to go to Options inside Messenger.'",
"titleBlink": true,
@ -968,7 +968,7 @@
"type": "email",
"allow_popups": false,
"manual_notifications": true,
"js_unread": "function checkUnread(){var e=null!==document.querySelector(\".ms-FocusZone .NJVykX0WljoRws2qTYI5G > span:last-child\").innerText?parseInt(document.querySelector(\".ms-FocusZone .NJVykX0WljoRws2qTYI5G > span:last-child\").innerText):0;updateBadge(\"\"===e?0:parseInt(e))}function updateBadge(e){1<=e?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);",
"js_unread": "function checkUnread(){let e=0;document.querySelectorAll('[data-testid=\"mwthreadlist-item\"]').forEach(t=>t.querySelector(\".lrazzd5p\")&&(e+=1)),updateBadge(e)}function updateBadge(e){rambox.setUnreadCount(e)}setInterval(checkUnread,3e3);",
"userAgent": "",
"note": "",
"titleBlink": false,
@ -1478,7 +1478,7 @@
"type": "messaging",
"allow_popups": false,
"manual_notifications": false,
"js_unread": "",
"js_unread": "function checkUnread(){let e=0;document.querySelectorAll('[data-testid=\"mwthreadlist-item\"]').forEach(t=>t.querySelector(\".lrazzd5p\")&&(e+=1)),updateBadge(e)}function updateBadge(e){rambox.setUnreadCount(e)}setInterval(checkUnread,3e3);",
"userAgent": "",
"note": "",
"titleBlink": false,

Loading…
Cancel
Save