File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -348,6 +348,12 @@ collect.set('isRepoMainSettings', [
348
348
'https://github.com/sindresorhus/refined-github/settings' ,
349
349
] ) ;
350
350
351
+ export const isRepliesSettings = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => getCleanPathname ( url ) . startsWith ( 'settings/replies' ) ;
352
+ collect . set ( 'isRepliesSettings' , [
353
+ 'https://github.com/settings/replies' ,
354
+ 'https://github.com/settings/replies/88491/edit' ,
355
+ ] ) ;
356
+
351
357
export const isRepoTree = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => isRepoRoot ( url ) || String ( getRepoPath ( url ) ) . startsWith ( 'tree/' ) ;
352
358
collect . set ( 'isRepoTree' , [
353
359
...collect . get ( 'isRepoRoot' ) as string [ ] ,
@@ -430,7 +436,8 @@ collect.set('hasRichTextEditor', combinedTestOnly);
430
436
export const hasRichTextEditor = ( url : URL | HTMLAnchorElement | Location = location ) : boolean =>
431
437
hasComments ( url ) ||
432
438
isNewIssue ( url ) ||
433
- isCompare ( url ) ;
439
+ isCompare ( url ) ||
440
+ isRepliesSettings ( url ) ;
434
441
435
442
collect . set ( 'hasCode' , combinedTestOnly ) ;
436
443
export const hasCode = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => // Static code, not the editor
You can’t perform that action at this time.
0 commit comments