diff options
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/airtable/webview.js | 0 | ||||
-rw-r--r-- | recipes/bigbluebutton/webview.js | 0 | ||||
-rw-r--r-- | recipes/circuit/index.js | 1 | ||||
-rw-r--r-- | recipes/circuit/webview.js | 15 | ||||
-rw-r--r-- | recipes/clockwise/webview.js | 0 | ||||
-rw-r--r-- | recipes/google-contacts/webview.js | 0 | ||||
-rw-r--r-- | recipes/google-news/webview.js | 0 | ||||
-rw-r--r-- | recipes/googlekeep/webview.js | 0 | ||||
-rw-r--r-- | recipes/googlepodcasts/webview.js | 0 | ||||
-rw-r--r-- | recipes/harvest/webview.js | 0 | ||||
-rw-r--r-- | recipes/nextcloud-news/service.css | 16 | ||||
-rw-r--r-- | recipes/nextcloud-news/webview.js | 6 | ||||
-rwxr-xr-x | recipes/noisli/webview.js | 0 | ||||
-rw-r--r-- | recipes/pocket/webview.js | 0 | ||||
-rw-r--r-- | recipes/pushbullet/webview.js | 0 | ||||
-rwxr-xr-x | recipes/standardnotes/webview.js | 0 | ||||
-rw-r--r-- | recipes/tixio/webview.js | 0 | ||||
-rw-r--r-- | recipes/youtubemusic/webview.js | 0 | ||||
-rw-r--r-- | recipes/zenhub/webview.js | 0 |
19 files changed, 26 insertions, 12 deletions
diff --git a/recipes/airtable/webview.js b/recipes/airtable/webview.js deleted file mode 100644 index e69de29..0000000 --- a/recipes/airtable/webview.js +++ /dev/null | |||
diff --git a/recipes/bigbluebutton/webview.js b/recipes/bigbluebutton/webview.js deleted file mode 100644 index e69de29..0000000 --- a/recipes/bigbluebutton/webview.js +++ /dev/null | |||
diff --git a/recipes/circuit/index.js b/recipes/circuit/index.js index fbbcd9a..23607bd 100644 --- a/recipes/circuit/index.js +++ b/recipes/circuit/index.js | |||
@@ -1,2 +1 @@ | |||
1 | // just pass through Ferdi | ||
2 | module.exports = Ferdi => Ferdi; | module.exports = Ferdi => Ferdi; | |
diff --git a/recipes/circuit/webview.js b/recipes/circuit/webview.js index 8cd2e2f..c04022d 100644 --- a/recipes/circuit/webview.js +++ b/recipes/circuit/webview.js | |||
@@ -1,11 +1,16 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdi => { |
2 | const getMessages = function getMessages() { | 2 | const getMessages = () => { |
3 | // Get value of <title> tag where in case of new messages the number of messages appear | 3 | // Get value of <title> tag where in case of new messages the number of messages appear |
4 | const titleValue = document.querySelector('title').text; | 4 | const title = document.querySelector('title'); |
5 | const match = titleValue.match(/\d+/); | 5 | if (title) { |
6 | const unread = match != null && match.length > 0 ? match[0] : 0; | 6 | const titleValue = title.text; |
7 | // Extract the number from the tag | ||
8 | const match = titleValue.match(/\d+/); | ||
9 | const unread = match != null && match.length > 0 ? match[0] : 0; | ||
7 | 10 | ||
8 | Ferdi.setBadge(Ferdi.safeParseInt(unread)); | 11 | // Set unread msgs badge |
12 | Ferdi.setBadge(Ferdi.safeParseInt(unread)); | ||
13 | } | ||
9 | }; | 14 | }; |
10 | 15 | ||
11 | Ferdi.loop(getMessages); | 16 | Ferdi.loop(getMessages); |
diff --git a/recipes/clockwise/webview.js b/recipes/clockwise/webview.js deleted file mode 100644 index e69de29..0000000 --- a/recipes/clockwise/webview.js +++ /dev/null | |||
diff --git a/recipes/google-contacts/webview.js b/recipes/google-contacts/webview.js deleted file mode 100644 index e69de29..0000000 --- a/recipes/google-contacts/webview.js +++ /dev/null | |||
diff --git a/recipes/google-news/webview.js b/recipes/google-news/webview.js deleted file mode 100644 index e69de29..0000000 --- a/recipes/google-news/webview.js +++ /dev/null | |||
diff --git a/recipes/googlekeep/webview.js b/recipes/googlekeep/webview.js deleted file mode 100644 index e69de29..0000000 --- a/recipes/googlekeep/webview.js +++ /dev/null | |||
diff --git a/recipes/googlepodcasts/webview.js b/recipes/googlepodcasts/webview.js deleted file mode 100644 index e69de29..0000000 --- a/recipes/googlepodcasts/webview.js +++ /dev/null | |||
diff --git a/recipes/harvest/webview.js b/recipes/harvest/webview.js deleted file mode 100644 index e69de29..0000000 --- a/recipes/harvest/webview.js +++ /dev/null | |||
diff --git a/recipes/nextcloud-news/service.css b/recipes/nextcloud-news/service.css index 4974300..ea90cc9 100644 --- a/recipes/nextcloud-news/service.css +++ b/recipes/nextcloud-news/service.css | |||
@@ -1,12 +1,20 @@ | |||
1 | /* Hide all app links and contacts menu link in the top menu except for | 1 | /* Hide all app links and contacts menu link in the top menu except for |
2 | News */ | 2 | News */ |
3 | #appmenu li:not([data-id="news"]), #contactsmenu {display: none;} | 3 | #appmenu li:not([data-id='news']), |
4 | #contactsmenu { | ||
5 | display: none; | ||
6 | } | ||
4 | 7 | ||
5 | /* Change the cursor to the default for Nextcloud home, News and settings | 8 | /* Change the cursor to the default for Nextcloud home, News and settings |
6 | links in the top menu and disable them */ | 9 | links in the top menu and disable them */ |
7 | #nextcloud, #appmenu li[data-id="news"] a, #settings { | 10 | #nextcloud, |
8 | cursor: default; pointer-events: none; | 11 | #appmenu li[data-id='news'] a, |
12 | #settings { | ||
13 | cursor: default; | ||
14 | pointer-events: none; | ||
9 | } | 15 | } |
10 | 16 | ||
11 | /* Hide "More" link in the top menu */ | 17 | /* Hide "More" link in the top menu */ |
12 | #more-apps {display: none !important;} | 18 | #more-apps { |
19 | display: none !important; | ||
20 | } | ||
diff --git a/recipes/nextcloud-news/webview.js b/recipes/nextcloud-news/webview.js index 048ac7d..7c1c65c 100644 --- a/recipes/nextcloud-news/webview.js +++ b/recipes/nextcloud-news/webview.js | |||
@@ -1,13 +1,15 @@ | |||
1 | const _path = _interopRequireDefault(require('path')); | 1 | const _path = _interopRequireDefault(require('path')); |
2 | 2 | ||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 3 | function _interopRequireDefault(obj) { |
4 | return obj && obj.__esModule ? obj : { default: obj }; | ||
5 | } | ||
4 | 6 | ||
5 | module.exports = Ferdi => { | 7 | module.exports = Ferdi => { |
6 | const getMessages = () => { | 8 | const getMessages = () => { |
7 | const selector = document.querySelector( | 9 | const selector = document.querySelector( |
8 | '.subscriptions-feed .app-navigation-entry-utils-counter', | 10 | '.subscriptions-feed .app-navigation-entry-utils-counter', |
9 | ); | 11 | ); |
10 | const direct = selector ? Ferdi.safeParseInt(selector.innerText) : 0; | 12 | const direct = selector ? Ferdi.safeParseInt(selector.textContent) : 0; |
11 | 13 | ||
12 | Ferdi.setBadge(direct); | 14 | Ferdi.setBadge(direct); |
13 | }; | 15 | }; |
diff --git a/recipes/noisli/webview.js b/recipes/noisli/webview.js deleted file mode 100755 index e69de29..0000000 --- a/recipes/noisli/webview.js +++ /dev/null | |||
diff --git a/recipes/pocket/webview.js b/recipes/pocket/webview.js deleted file mode 100644 index e69de29..0000000 --- a/recipes/pocket/webview.js +++ /dev/null | |||
diff --git a/recipes/pushbullet/webview.js b/recipes/pushbullet/webview.js deleted file mode 100644 index e69de29..0000000 --- a/recipes/pushbullet/webview.js +++ /dev/null | |||
diff --git a/recipes/standardnotes/webview.js b/recipes/standardnotes/webview.js deleted file mode 100755 index e69de29..0000000 --- a/recipes/standardnotes/webview.js +++ /dev/null | |||
diff --git a/recipes/tixio/webview.js b/recipes/tixio/webview.js deleted file mode 100644 index e69de29..0000000 --- a/recipes/tixio/webview.js +++ /dev/null | |||
diff --git a/recipes/youtubemusic/webview.js b/recipes/youtubemusic/webview.js deleted file mode 100644 index e69de29..0000000 --- a/recipes/youtubemusic/webview.js +++ /dev/null | |||
diff --git a/recipes/zenhub/webview.js b/recipes/zenhub/webview.js deleted file mode 100644 index e69de29..0000000 --- a/recipes/zenhub/webview.js +++ /dev/null | |||