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', [
348348 'https://github.com/sindresorhus/refined-github/settings' ,
349349] ) ;
350350
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+
351357export const isRepoTree = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => isRepoRoot ( url ) || String ( getRepoPath ( url ) ) . startsWith ( 'tree/' ) ;
352358collect . set ( 'isRepoTree' , [
353359 ...collect . get ( 'isRepoRoot' ) as string [ ] ,
@@ -430,7 +436,8 @@ collect.set('hasRichTextEditor', combinedTestOnly);
430436export const hasRichTextEditor = ( url : URL | HTMLAnchorElement | Location = location ) : boolean =>
431437 hasComments ( url ) ||
432438 isNewIssue ( url ) ||
433- isCompare ( url ) ;
439+ isCompare ( url ) ||
440+ isRepliesSettings ( url ) ;
434441
435442collect . set ( 'hasCode' , combinedTestOnly ) ;
436443export 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