From d3ae6699515cd3f4ef16ad5e2e8fb93e36684e6f Mon Sep 17 00:00:00 2001 From: patak Date: Fri, 14 Apr 2023 16:24:21 +0200 Subject: [PATCH 1/2] fix: also match url with anchors --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index cf2d6e3..6ac49e8 100644 --- a/index.js +++ b/index.js @@ -8,6 +8,7 @@ // @author Anthony Fu // @license MIT // @match https://github.com/** +// @match https://github.com/**#** // @icon https://www.google.com/s2/favicons?sz=64&domain=pr.new // @grant none // ==/UserScript== From abc93eb8ca26845431a49148a4fd72e167b24eb1 Mon Sep 17 00:00:00 2001 From: patak Date: Fri, 14 Apr 2023 16:35:58 +0200 Subject: [PATCH 2/2] chore: update --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6ac49e8..5f240e5 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,6 @@ // @author Anthony Fu // @license MIT // @match https://github.com/** -// @match https://github.com/**#** // @icon https://www.google.com/s2/favicons?sz=64&domain=pr.new // @grant none // ==/UserScript== @@ -67,6 +66,7 @@ } run() + setTimeout(run, 500) // deduped, no harm in making sure the dom is ready // listen to github page loaded event document.addEventListener('pjax:end', () => run())