From 74629521493c625b5d7c85b57e92855d376cf965 Mon Sep 17 00:00:00 2001 From: Edgars Date: Fri, 15 Dec 2023 10:13:59 +0200 Subject: [PATCH] Add new selector for indirect GitHub notif. badge GitHub recipe was updated to append a new selector for indirect notifications badge that works when an user navigates to GitHub Gist. --- recipes/github/package.json | 2 +- recipes/github/webview.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes/github/package.json b/recipes/github/package.json index e077f8d41..9b3b9b733 100644 --- a/recipes/github/package.json +++ b/recipes/github/package.json @@ -1,7 +1,7 @@ { "id": "github", "name": "GitHub", - "version": "2.6.1", + "version": "2.6.2", "license": "MIT", "config": { "serviceURL": "https://github.com/notifications", diff --git a/recipes/github/webview.js b/recipes/github/webview.js index c3f653f0f..78086c2d0 100644 --- a/recipes/github/webview.js +++ b/recipes/github/webview.js @@ -15,7 +15,8 @@ module.exports = Ferdium => { ?.textContent, ) + Ferdium.safeParseInt(newCountMatch ? newCountMatch[0] : 0), document.querySelectorAll( - '#AppHeader-notifications-button.AppHeader-button--hasIndicator', + '#AppHeader-notifications-button.AppHeader-button--hasIndicator, ' + + '[data-target="notification-indicator.badge"]:not([hidden])', ).length, ); };