aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Edgars <eandersons@users.noreply.github.com>2023-12-17 06:33:17 +0200
committerLibravatar GitHub <noreply@github.com>2023-12-16 21:33:17 -0700
commit5fa730f826b27f69479382e1d5d9a1f0ae568144 (patch)
tree9d7d215effaa5ee272dc2e6c6d70e26615f82942
parentAdds Spaces and Chat badges to countImportant (#479) (diff)
downloadferdium-recipes-5fa730f826b27f69479382e1d5d9a1f0ae568144.tar.gz
ferdium-recipes-5fa730f826b27f69479382e1d5d9a1f0ae568144.tar.zst
ferdium-recipes-5fa730f826b27f69479382e1d5d9a1f0ae568144.zip
Add a new selector for indirect GitHub notification badge (#480)
-rw-r--r--recipes/github/package.json2
-rw-r--r--recipes/github/webview.js3
2 files changed, 3 insertions, 2 deletions
diff --git a/recipes/github/package.json b/recipes/github/package.json
index e077f8d..9b3b9b7 100644
--- a/recipes/github/package.json
+++ b/recipes/github/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "github", 2 "id": "github",
3 "name": "GitHub", 3 "name": "GitHub",
4 "version": "2.6.1", 4 "version": "2.6.2",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://github.com/notifications", 7 "serviceURL": "https://github.com/notifications",
diff --git a/recipes/github/webview.js b/recipes/github/webview.js
index c3f653f..78086c2 100644
--- a/recipes/github/webview.js
+++ b/recipes/github/webview.js
@@ -15,7 +15,8 @@ module.exports = Ferdium => {
15 ?.textContent, 15 ?.textContent,
16 ) + Ferdium.safeParseInt(newCountMatch ? newCountMatch[0] : 0), 16 ) + Ferdium.safeParseInt(newCountMatch ? newCountMatch[0] : 0),
17 document.querySelectorAll( 17 document.querySelectorAll(
18 '#AppHeader-notifications-button.AppHeader-button--hasIndicator', 18 '#AppHeader-notifications-button.AppHeader-button--hasIndicator, ' +
19 '[data-target="notification-indicator.badge"]:not([hidden])',
19 ).length, 20 ).length,
20 ); 21 );
21 }; 22 };