From 1e465d75b8c35deaa388c5e4c4b830ee8f8536f9 Mon Sep 17 00:00:00 2001 From: Serene-Arc <33189705+Serene-Arc@users.noreply.github.com> Date: Sat, 30 Mar 2024 13:11:01 +1000 Subject: Add recipe for Proton Pass --- recipes/proton-pass/icon.svg | 55 ++++++++++++++++++++++++++++++++++++++++ recipes/proton-pass/index.js | 6 +++++ recipes/proton-pass/package.json | 9 +++++++ recipes/proton-pass/webview.js | 16 ++++++++++++ 4 files changed, 86 insertions(+) create mode 100644 recipes/proton-pass/icon.svg create mode 100644 recipes/proton-pass/index.js create mode 100644 recipes/proton-pass/package.json create mode 100644 recipes/proton-pass/webview.js (limited to 'recipes') diff --git a/recipes/proton-pass/icon.svg b/recipes/proton-pass/icon.svg new file mode 100644 index 0000000..09041f3 --- /dev/null +++ b/recipes/proton-pass/icon.svg @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/recipes/proton-pass/index.js b/recipes/proton-pass/index.js new file mode 100644 index 0000000..3ec88c0 --- /dev/null +++ b/recipes/proton-pass/index.js @@ -0,0 +1,6 @@ +module.exports = Ferdium => + class ProtonPass extends Ferdium { + overrideUserAgent() { + return 'Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0'; + } + }; diff --git a/recipes/proton-pass/package.json b/recipes/proton-pass/package.json new file mode 100644 index 0000000..871d62c --- /dev/null +++ b/recipes/proton-pass/package.json @@ -0,0 +1,9 @@ +{ + "id": "proton-pass", + "name": "Proton Pass", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://pass.proton.me/" + } +} diff --git a/recipes/proton-pass/webview.js b/recipes/proton-pass/webview.js new file mode 100644 index 0000000..1a4ae0c --- /dev/null +++ b/recipes/proton-pass/webview.js @@ -0,0 +1,16 @@ +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; +} + +const _path = _interopRequireDefault(require('path')); + +module.exports = Ferdium => { + // TODO: If your Proton Pass service has unread messages, uncomment these lines to implement the logic for updating the badges + // const getMessages = () => { + // // TODO: Insert your notification-finding code here + // Ferdium.setBadge(0, 0); + // }; + // Ferdium.loop(getMessages); + + Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); +}; -- cgit v1.2.3-54-g00ecf