Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 581c12f

Browse files
Add Instagram.
Fixes #330.
1 parent 86c1fde commit 581c12f

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@
158158
<img width="80" align="left" src="./resources/icons/hangoutschat.png" alt="Hangouts Chat" title="Hangouts Chat">
159159
<img width="80" align="left" src="./resources/icons/messengerpages.png" alt="Messenger for Business" title="Messenger for Business">
160160
<img width="80" align="left" src="./resources/icons/androidmessages.png" alt="Android Messages" title="Android Messages">
161+
<img width="80" align="left" src="./resources/icons/instagram.png" alt="Instagram" title="Instagram">
161162

162163
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
163164

app/store/ServicesList.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,15 @@ Ext.define('Hamsket.store.ServicesList', {
874874
,url: 'https://messages.google.com/web'
875875
,type: 'messaging'
876876
,js_unread: `let checkUnread=()=>{hamsket.updateBadge(Array.prototype.slice.apply(document.querySelectorAll(".text-content.unread")).reduce((c,b) => !b.querySelector(".notifications-off")+c,0))};setInterval(checkUnread,3e3);`
877-
}
877+
},
878+
{
879+
id: 'instagram'
880+
,logo: 'instagram.png'
881+
,name: 'Instagram'
882+
,description: 'Instagram is a photo-sharing app for Android and iOS.'
883+
,url: ' https://www.instagram.com'
884+
,type: 'messaging'
885+
,js_unread: `const checkUnread=()=>{const element=document.querySelector('a[href^="/direct/inbox"]');hamsket.updateBadge(hamsket.parseIntOrZero(element.textContent))};setInterval(checkUnread,3e3);`
886+
},
878887
]
879888
});

resources/icons/instagram.png

46.7 KB
Loading

0 commit comments

Comments
 (0)