Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Yandex mail plugin #282

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions agent.mail.ru/css/franz.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.nwa-header__popup {
display: none;
}
Binary file added agent.mail.ru/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions agent.mail.ru/icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions agent.mail.ru/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// just pass through Franz
module.exports = Franz => Franz;
23 changes: 23 additions & 0 deletions agent.mail.ru/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "Агент Mail.Ru",
"version": "1.0.0",
"description": "Агент Mail.Ru для веб-браузеров – общение с любого компьютера, бесплатные SMS, звонки на телефоны",
"main": "index.js",
"author": "Impeck <impeck@ya.ru>",
"license": "MIT",
"config": {
"serviceURL": "http://webagent.mail.ru/webim/agent/popup.html",
"serviceName": "Агент Mail.Ru",
"message": "Веб-Агент – облегченная версия Агента специально для веб-браузеров.",
"popup": [],
"hasNotificationSound": true,
"hasIndirectMessages": false,
"hasTeamID": false,
"customURL": false,
"hostedOnly": false,
"webviewOptions": {
"disablewebsecurity": ""
},
"openDevTools": false
}
}
17 changes: 17 additions & 0 deletions agent.mail.ru/webview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const path = require('path');

module.exports = (Franz, options) => {
const getMessages = () => {
var counter = 0;
var matches = document.querySelectorAll("span.nwa-msg-counter");
for(var i = 0; i < matches.length; i++){
counter += parseInt(matches[i].innerHTML, 10);
}
Franz.setBadge(counter);
}

Franz.loop(getMessages);

Franz.injectCSS(path.join(__dirname, 'css', 'franz.css'));
};

Binary file added icq/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions icq/icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions icq/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// just pass through Franz
module.exports = Franz => Franz;
23 changes: 23 additions & 0 deletions icq/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "ICQ",
"version": "1.0.0",
"description": "Simple way to communicate and nothing extra. New design, free sound and video calls, group chats and much more!",
"main": "index.js",
"author": "Impeck <impeck@ya.ru>",
"license": "MIT",
"config": {
"serviceURL": "https://web.icq.com",
"serviceName": "ICQ",
"message": "Simple way to communicate and nothing extra.",
"popup": [],
"hasNotificationSound": false,
"hasIndirectMessages": false,
"hasTeamID": false,
"customURL": false,
"hostedOnly": false,
"webviewOptions": {
"disablewebsecurity": ""
},
"openDevTools": false
}
}
17 changes: 17 additions & 0 deletions icq/webview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const path = require('path');

module.exports = (Franz, options) => {
const getMessages = () => {
if ($('.nwa-msg-counter').css('display') != "none") {
const counter = Number($('.nwa-msg-counter').html());
Franz.setBadge(counter);
} else {
Franz.setBadge(0);
}
}

Franz.loop(getMessages);

//Franz.injectCSS(path.join(__dirname, 'css', 'franz.css'));
};

3 changes: 3 additions & 0 deletions mail.ru/css/franz.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#leftcol-banners{
display: none;
}
Binary file added mail.ru/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions mail.ru/icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions mail.ru/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// just pass through Franz
module.exports = Franz => Franz;
23 changes: 23 additions & 0 deletions mail.ru/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "@MAIL.RU",
"version": "1.0.0",
"description": "@MAIL.RU — ведущая бесплатная почта Рунета",
"main": "index.js",
"author": "Impeck <impeck@ya.ru>",
"license": "MIT",
"config": {
"serviceURL": "https://e.mail.ru/messages/inbox/",
"serviceName": "@MAIL.RU",
"message": "Ведущая бесплатная почта Рунета.",
"popup": [],
"hasNotificationSound": true,
"hasIndirectMessages": false,
"hasTeamID": false,
"customURL": false,
"hostedOnly": false,
"webviewOptions": {
"disablewebsecurity": ""
},
"openDevTools": false
}
}
13 changes: 13 additions & 0 deletions mail.ru/webview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const path = require('path');

module.exports = (Franz, options) => {
const getMessages = () => {
const counter = Number($('#g_mail_events').html());
Franz.setBadge(counter);
}

Franz.loop(getMessages);

Franz.injectCSS(path.join(__dirname, 'css', 'franz.css'));
};

Binary file added ok.ru/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.