Skip to content

Commit

Permalink
Update first comment selector (#44)
Browse files Browse the repository at this point in the history
* Update first comment selector

* Update manifest.json

* Update github-injection.js to 1.1.0
  • Loading branch information
inkydragon authored Feb 25, 2025
1 parent 24ae241 commit 02758d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
3 changes: 2 additions & 1 deletion src/vendor/github-injection.js
Original file line number Diff line number Diff line change
@@ -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 => {
Expand All @@ -11,6 +11,7 @@ const gitHubInjection = cb => {
}

document.addEventListener('pjax:end', cb);
document.addEventListener('turbo:render', cb);
cb();
};

Expand Down

0 comments on commit 02758d9

Please sign in to comment.