@@ -156,7 +156,7 @@ collect.set('isNotifications', [
156
156
157
157
export const isOrganizationProfile = ( ) : boolean => exists ( 'meta[name="hovercard-subject-tag"][content^="organization"]' ) ;
158
158
159
- export const isOrganizationRepo = ( ) : boolean => Boolean ( document . querySelector < HTMLElement > ( '[data-owner-scoped-search-url]' ) ?. dataset . ownerScopedSearchUrl ! . startsWith ( '/org' ) ) ;
159
+ export const isOrganizationRepo = ( ) : boolean => Boolean ( document . querySelector < HTMLElement > ( '[data-owner-scoped-search-url]' ) ?. dataset [ ' ownerScopedSearchUrl' ] ! . startsWith ( '/org' ) ) ;
160
160
161
161
export const isOrganizationDiscussion = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ o r g s \/ [ ^ / ] + \/ t e a m s \/ [ ^ / ] + ( $ | \/ d i s c u s s i o n s ) / . test ( getCleanPathname ( url ) ) ;
162
162
collect . set ( 'isOrganizationDiscussion' , [
@@ -388,19 +388,18 @@ collect.set('isRepoMainSettings', [
388
388
'https://github.com/sindresorhus/refined-github/settings' ,
389
389
] ) ;
390
390
391
- export const isUserSettings = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => url . pathname . startsWith ( '/settings/' ) ;
392
- collect . set ( 'isUserSettings' , [
393
- 'https://github.com/settings/profile' ,
394
- 'https://github.com/settings/replies' ,
395
- 'https://github.com/settings/replies/88491/edit' ,
396
- ] ) ;
397
-
398
391
export const isRepliesSettings = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => url . pathname . startsWith ( '/settings/replies' ) ;
399
392
collect . set ( 'isRepliesSettings' , [
400
393
'https://github.com/settings/replies' ,
401
394
'https://github.com/settings/replies/88491/edit' ,
402
395
] ) ;
403
396
397
+ export const isUserSettings = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => url . pathname . startsWith ( '/settings/' ) ;
398
+ collect . set ( 'isUserSettings' , [
399
+ 'https://github.com/settings/profile' ,
400
+ ...collect . get ( 'isRepliesSettings' ) as string [ ] ,
401
+ ] ) ;
402
+
404
403
export const isRepoTree = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => isRepoRoot ( url ) || Boolean ( getRepo ( url ) ?. path . startsWith ( 'tree/' ) ) ;
405
404
collect . set ( 'isRepoTree' , [
406
405
...collect . get ( 'isRepoRoot' ) as string [ ] ,
0 commit comments