diff options
author | 2024-05-09 10:06:07 +0700 | |
---|---|---|
committer | 2024-05-09 08:36:07 +0530 | |
commit | 5f86784ab1b38e07824ab5238b82fb66186a6985 (patch) | |
tree | 566d9066d6f1d75ebbe241de7614eedc613d64b8 /recipes/upwork/webview.js | |
parent | add sakarimov as a contributor for code [skip ci] (#545) (diff) | |
download | ferdium-recipes-5f86784ab1b38e07824ab5238b82fb66186a6985.tar.gz ferdium-recipes-5f86784ab1b38e07824ab5238b82fb66186a6985.tar.zst ferdium-recipes-5f86784ab1b38e07824ab5238b82fb66186a6985.zip |
add upwork recipe (#547)
Diffstat (limited to 'recipes/upwork/webview.js')
-rw-r--r-- | recipes/upwork/webview.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/recipes/upwork/webview.js b/recipes/upwork/webview.js new file mode 100644 index 0000000..6a2492c --- /dev/null +++ b/recipes/upwork/webview.js | |||
@@ -0,0 +1,17 @@ | |||
1 | function _interopRequireDefault(obj) { | ||
2 | return obj && obj.__esModule ? obj : { default: obj }; | ||
3 | } | ||
4 | |||
5 | const _path = _interopRequireDefault(require('path')); | ||
6 | |||
7 | module.exports = Ferdium => { | ||
8 | const getMessages = () => { | ||
9 | const directMessages = $('li .notification-row .d-inline-block')?.textContent; | ||
10 | |||
11 | Ferdium.setBadge(directMessages); | ||
12 | }; | ||
13 | |||
14 | Ferdium.loop(getMessages); | ||
15 | |||
16 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
17 | }; | ||