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

Commit

Permalink
Add Instagram.
Browse files Browse the repository at this point in the history
Fixes #330.
  • Loading branch information
TheGoddessInari committed Jun 26, 2022
1 parent 86c1fde commit 581c12f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
<img width="80" align="left" src="./resources/icons/hangoutschat.png" alt="Hangouts Chat" title="Hangouts Chat">
<img width="80" align="left" src="./resources/icons/messengerpages.png" alt="Messenger for Business" title="Messenger for Business">
<img width="80" align="left" src="./resources/icons/androidmessages.png" alt="Android Messages" title="Android Messages">
<img width="80" align="left" src="./resources/icons/instagram.png" alt="Instagram" title="Instagram">

<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>

Expand Down
11 changes: 10 additions & 1 deletion app/store/ServicesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,15 @@ Ext.define('Hamsket.store.ServicesList', {
,url: 'https://messages.google.com/web'
,type: 'messaging'
,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);`
}
},
{
id: 'instagram'
,logo: 'instagram.png'
,name: 'Instagram'
,description: 'Instagram is a photo-sharing app for Android and iOS.'
,url: ' https://www.instagram.com'
,type: 'messaging'
,js_unread: `const checkUnread=()=>{const element=document.querySelector('a[href^="/direct/inbox"]');hamsket.updateBadge(hamsket.parseIntOrZero(element.textContent))};setInterval(checkUnread,3e3);`
},
]
});
Binary file added resources/icons/instagram.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 581c12f

Please sign in to comment.