@@ -156,7 +156,7 @@ collect.set('isNotifications', [
156156
157157export const isOrganizationProfile = ( ) : boolean => exists ( 'meta[name="hovercard-subject-tag"][content^="organization"]' ) ;
158158
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' ) ) ;
160160
161161export 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 ) ) ;
162162collect . set ( 'isOrganizationDiscussion' , [
@@ -388,19 +388,18 @@ collect.set('isRepoMainSettings', [
388388 'https://github.com/sindresorhus/refined-github/settings' ,
389389] ) ;
390390
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-
398391export const isRepliesSettings = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => url . pathname . startsWith ( '/settings/replies' ) ;
399392collect . set ( 'isRepliesSettings' , [
400393 'https://github.com/settings/replies' ,
401394 'https://github.com/settings/replies/88491/edit' ,
402395] ) ;
403396
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+
404403export const isRepoTree = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => isRepoRoot ( url ) || Boolean ( getRepo ( url ) ?. path . startsWith ( 'tree/' ) ) ;
405404collect . set ( 'isRepoTree' , [
406405 ...collect . get ( 'isRepoRoot' ) as string [ ] ,
0 commit comments