File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 27
27
28
28
if ( window . location . pathname . toLowerCase ( ) === "/search" ) {
29
29
const apply = ( e ) => {
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"]` ) )
31
- path . parentElement . classList . add ( "rissue-closed-fg" ) ;
30
+ if ( window . location . search . includes ( "type=issues" ) )
31
+ 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"]` ) )
32
+ path . parentElement . classList . add ( "rissue-closed-fg" ) ;
32
33
} ;
33
34
34
35
whenElementAdded ( `react-app[app-name="blackbird-search"]` , ( e ) => {
39
40
} ;
40
41
41
42
init ( ) ;
42
- window . addEventListener ( "popstate " , init ) ;
43
+ window . addEventListener ( "turbo:render " , init ) ;
43
44
} ) ( ) ;
Original file line number Diff line number Diff line change 4
4
"name" : " GitHub Red Issues" ,
5
5
"author" : " Katsute" ,
6
6
"description" : " Revert closed GitHub issues from purple back to red." ,
7
- "version" : " 4.2 " ,
7
+ "version" : " 4.3 " ,
8
8
"homepage_url" : " https://github.com/KatsuteDev/GitHub-Red-Issues" ,
9
9
"icons" : {
10
10
"16" : " icon16.png" ,
You can’t perform that action at this time.
0 commit comments