Skip to content

Commit

Permalink
fix search
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsute committed Feb 23, 2023
1 parent 9d6c1fc commit a5ba263
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"))){
Expand All @@ -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");
};

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 @@
"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",
Expand Down

0 comments on commit a5ba263

Please sign in to comment.