From bafd8e86267ef789c8765f31fef36d0ac8859852 Mon Sep 17 00:00:00 2001 From: woclass Date: Tue, 9 Aug 2022 20:08:24 +0800 Subject: [PATCH 1/3] Update first comment selector --- src/content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.js b/src/content.js index e97bf2f..f4b518c 100644 --- a/src/content.js +++ b/src/content.js @@ -206,7 +206,7 @@ function issueOrPrLink(type, repoPath, contributor) { } function injectInitialUI({ contributor, repoPath }) { - let $elem = document.querySelector(".timeline-comment-header-text"); + let $elem = document.querySelector(".timeline-comment-header>h3"); let prId = "gce-num-prs"; let prText = makeLabel("Loading..", "git-pull-request"); From e3f6d583791948e35b5f24ce0616896c03d193da Mon Sep 17 00:00:00 2001 From: woclass Date: Tue, 9 Aug 2022 20:19:48 +0800 Subject: [PATCH 2/3] Update manifest.json --- src/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manifest.json b/src/manifest.json index f20155d..20b945b 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -4,7 +4,7 @@ "short_name": "Stats on Github", "homepage_url": "https://github.com/hzoo/contributors-on-github", "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwnKOOu3IkB/A55pdBjEV988NSgMzl8KDo4vZeCz9uuWEyYRLOF63/i8rm4ujFgGm+sfOqIm7u3wNKmgIfEdZwdswWeVC/0/Gra4frixoiQcsykapk7bKFAuFDA06p4jHmmfZZs32bujZaqRDE9Fm4lJ4+otikCmZodHf5oxHu1NdGVSlyiFDpqh7wkg6zhUvOU5vr2bC/Ot5EMAMEtv6oHW5MAflxnLvERc0pK2abVRWvXBM9EbsekSa+d4WwJ2tMDFOe2KDM/FS6+6Jjhm/6SKDc30b+o9Ts8ueDNg8anZ0bOYvzdFtTZYqyQ18zYV252UKDOAgg1rhJkUe9RvNnwIDAQAB", - "version": "1.0.7", + "version": "1.0.8", "icons": { "128": "icon-128.png" }, From 79606fb58e2268d85801d968ac75870ccc7325cc Mon Sep 17 00:00:00 2001 From: woclass Date: Tue, 9 Aug 2022 20:23:19 +0800 Subject: [PATCH 3/3] Update github-injection.js to 1.1.0 --- src/vendor/github-injection.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vendor/github-injection.js b/src/vendor/github-injection.js index 881bc06..3c8defb 100644 --- a/src/vendor/github-injection.js +++ b/src/vendor/github-injection.js @@ -1,4 +1,4 @@ -// https://github.com/octo-linker/injection 1.0.1 +// https://github.com/octo-linker/injection 1.1.0 (2022-07-13) 'use strict'; const gitHubInjection = cb => { @@ -11,6 +11,7 @@ const gitHubInjection = cb => { } document.addEventListener('pjax:end', cb); + document.addEventListener('turbo:render', cb); cb(); };