diff --git a/src/index.js b/src/index.js index 3ac07e7..3a2cf72 100644 --- a/src/index.js +++ b/src/index.js @@ -15,7 +15,7 @@ const init = () => { if(window.location.pathname.toLowerCase().includes("/projects/")) - whenElementAdded(`#__primerPortalRoot__`, (e) => { + whenElementAdded("#__primerPortalRoot__", (e) => { e.addEventListener("DOMNodeInserted", (i) => { let svg; if(i.target.querySelector && (svg = i.target.querySelector("figure > span > svg"))){ @@ -27,7 +27,7 @@ if(window.location.pathname.toLowerCase() === "/search"){ const apply = (e) => { - for(const path of e.querySelectorAll(`path[d="M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM0 8a8 8 0 1116 0A8 8 0 010 8zm11.78-1.72a.75.75 0 00-1.06-1.06L6.75 9.19 5.28 7.72a.75.75 0 00-1.06 1.06l2 2a.75.75 0 001.06 0l4.5-4.5z"]`)) + for(const path of e.querySelectorAll(`path[d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm1.5 0a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm10.28-1.72-4.5 4.5a.75.75 0 0 1-1.06 0l-2-2a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l1.47 1.47 3.97-3.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"]`)) path.parentElement.classList.add("rissue-closed-fg"); }; diff --git a/src/manifest.json b/src/manifest.json index c0c7f19..61748bb 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -4,7 +4,7 @@ "name": "GitHub Red Issues", "author": "Katsute", "description": "Revert closed GitHub issues from purple back to red.", - "version": "4.1", + "version": "4.2", "homepage_url": "https://github.com/KatsuteDev/GitHub-Red-Issues", "icons": { "16": "icon16.png",