diff --git a/yahoomail/icon.png b/yahoomail/icon.png new file mode 100644 index 0000000..ba4e8ef Binary files /dev/null and b/yahoomail/icon.png differ diff --git a/yahoomail/icon.svg b/yahoomail/icon.svg new file mode 100644 index 0000000..48294d9 --- /dev/null +++ b/yahoomail/icon.svg @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/yahoomail/index.js b/yahoomail/index.js new file mode 100644 index 0000000..6661724 --- /dev/null +++ b/yahoomail/index.js @@ -0,0 +1 @@ +module.exports = (Franz) => Franz; diff --git a/yahoomail/package.json b/yahoomail/package.json new file mode 100644 index 0000000..f9eb139 --- /dev/null +++ b/yahoomail/package.json @@ -0,0 +1,22 @@ +{ + "name": "yahoomail", + "version": "1.0.0", + "description": "yahoo mail", + "main": "index.js", + "author": "VagrantPi ", + "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": "" + } + } +} diff --git a/yahoomail/webview.js b/yahoomail/webview.js new file mode 100644 index 0000000..64bcad4 --- /dev/null +++ b/yahoomail/webview.js @@ -0,0 +1,9 @@ +module.exports = (Franz, options) => { + function getMessages() { + const count = parseInt(document.title.split('(')[1]) || 0; + + Franz.setBadge(count); + } + + Franz.loop(getMessages); +}