Skip to content

Commit a5ba263

Browse files
committed
fix search
1 parent 9d6c1fc commit a5ba263

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
const init = () => {
1717
if(window.location.pathname.toLowerCase().includes("/projects/"))
18-
whenElementAdded(`#__primerPortalRoot__`, (e) => {
18+
whenElementAdded("#__primerPortalRoot__", (e) => {
1919
e.addEventListener("DOMNodeInserted", (i) => {
2020
let svg;
2121
if(i.target.querySelector && (svg = i.target.querySelector("figure > span > svg"))){
@@ -27,7 +27,7 @@
2727

2828
if(window.location.pathname.toLowerCase() === "/search"){
2929
const apply = (e) => {
30-
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"]`))
30+
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"]`))
3131
path.parentElement.classList.add("rissue-closed-fg");
3232
};
3333

src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "GitHub Red Issues",
55
"author": "Katsute",
66
"description": "Revert closed GitHub issues from purple back to red.",
7-
"version": "4.1",
7+
"version": "4.2",
88
"homepage_url": "https://github.com/KatsuteDev/GitHub-Red-Issues",
99
"icons": {
1010
"16": "icon16.png",

0 commit comments

Comments
 (0)