diff --git a/inoreader/icon.png b/inoreader/icon.png new file mode 100644 index 0000000..28da097 Binary files /dev/null and b/inoreader/icon.png differ diff --git a/inoreader/icon.svg b/inoreader/icon.svg new file mode 100644 index 0000000..67d8733 --- /dev/null +++ b/inoreader/icon.svg @@ -0,0 +1,14 @@ + + + + background + + + + Layer 1 + + + + + + \ No newline at end of file diff --git a/inoreader/index.js b/inoreader/index.js new file mode 100644 index 0000000..258da41 --- /dev/null +++ b/inoreader/index.js @@ -0,0 +1 @@ +module.exports = Franz => Franz; diff --git a/inoreader/package.json b/inoreader/package.json new file mode 100644 index 0000000..46d7567 --- /dev/null +++ b/inoreader/package.json @@ -0,0 +1,23 @@ +{ + "name": "inoreader", + "version": "1.0.0", + "description": "The content reader for power users who want to save time.", + "main": "index.js", + "author": "Edvaldo da Rosa ", + "license": "MIT", + "config": { + "serviceURL": "https://www.inoreader.com/login", + "serviceName": "Inoreader", + "message": "", + "popup": [], + "hasNotificationSound": true, + "hasIndirectMessages": false, + "hasTeamID": false, + "customURL": false, + "hostedOnly": false, + "webviewOptions": { + "disablewebsecurity": "" + }, + "openDevTools": false + } +} diff --git a/inoreader/webview.js b/inoreader/webview.js new file mode 100644 index 0000000..bc1bb00 --- /dev/null +++ b/inoreader/webview.js @@ -0,0 +1,9 @@ +module.exports = (Franz, options) => { + function getMessages() { + const count = document.querySelector('#unread_cnt_all_items').innerText || 0; + + Franz.setBadge(count); + } + + Franz.loop(getMessages); +}