Skip to content

Commit 02758d9

Browse files
authored
Update first comment selector (#44)
* Update first comment selector * Update manifest.json * Update github-injection.js to 1.1.0
1 parent 24ae241 commit 02758d9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/content.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ function issueOrPrLink(type, repoPath, contributor) {
206206
}
207207

208208
function injectInitialUI({ contributor, repoPath }) {
209-
let $elem = document.querySelector(".timeline-comment-header-text");
209+
let $elem = document.querySelector(".timeline-comment-header>h3");
210210
let prId = "gce-num-prs";
211211
let prText = makeLabel("Loading..", "git-pull-request");
212212

src/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"short_name": "Stats on Github",
55
"homepage_url": "https://github.com/hzoo/contributors-on-github",
66
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwnKOOu3IkB/A55pdBjEV988NSgMzl8KDo4vZeCz9uuWEyYRLOF63/i8rm4ujFgGm+sfOqIm7u3wNKmgIfEdZwdswWeVC/0/Gra4frixoiQcsykapk7bKFAuFDA06p4jHmmfZZs32bujZaqRDE9Fm4lJ4+otikCmZodHf5oxHu1NdGVSlyiFDpqh7wkg6zhUvOU5vr2bC/Ot5EMAMEtv6oHW5MAflxnLvERc0pK2abVRWvXBM9EbsekSa+d4WwJ2tMDFOe2KDM/FS6+6Jjhm/6SKDc30b+o9Ts8ueDNg8anZ0bOYvzdFtTZYqyQ18zYV252UKDOAgg1rhJkUe9RvNnwIDAQAB",
7-
"version": "1.0.7",
7+
"version": "1.0.8",
88
"icons": {
99
"128": "icon-128.png"
1010
},

src/vendor/github-injection.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// https://github.com/octo-linker/injection 1.0.1
1+
// https://github.com/octo-linker/injection 1.1.0 (2022-07-13)
22
'use strict';
33

44
const gitHubInjection = cb => {
@@ -11,6 +11,7 @@ const gitHubInjection = cb => {
1111
}
1212

1313
document.addEventListener('pjax:end', cb);
14+
document.addEventListener('turbo:render', cb);
1415
cb();
1516
};
1617

0 commit comments

Comments
 (0)