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

feature - add yahoo mail support. #273

Open
wants to merge 1 commit 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added yahoomail/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
116 changes: 116 additions & 0 deletions yahoomail/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions yahoomail/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = (Franz) => Franz;
22 changes: 22 additions & 0 deletions yahoomail/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "yahoomail",
"version": "1.0.0",
"description": "yahoo mail",
"main": "index.js",
"author": "VagrantPi <[email protected]>",
"license": "MIT",
"config": {
"serviceURL": "https://tw.mail.yahoo.com/",
"serviceName": "YahooMail",
"message": "",
"popup": [],
"hasNotificationSound": true,
"hasTeamID": false,
"customURL": false,
"hostedOnly": false,
"hasIndirectMessages": false,
"webviewOptions": {
"disablewebsecurity": ""
}
}
}
9 changes: 9 additions & 0 deletions yahoomail/webview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = (Franz, options) => {
function getMessages() {
const count = parseInt(document.title.split('(')[1]) || 0;

Franz.setBadge(count);
}

Franz.loop(getMessages);
}