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"); 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" }, 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(); };