File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ export const _isDashboard = [
6767 'https://github.com/orgs/edit/dashboard' ,
6868 'https://github.big-corp.com/' ,
6969 'https://not-github.com/' ,
70- 'https://my-little-hub.com/'
70+ 'https://my-little-hub.com/' ,
71+ 'https://github.com/?tab=repositories' // Gotcha for `isUserProfileRepoTab`
7172] ;
7273
7374export const isEnterprise = ( ) : boolean => location . hostname !== 'github.com' && location . hostname !== 'gist.github.com' ;
@@ -373,6 +374,11 @@ export const _isBranches = [
373374export const isUserProfile = ( ) : boolean => select . exists ( '.user-profile-nav' ) ;
374375export const _isUserProfile = domBased ;
375376
377+ export const isUserProfileRepoTab = ( ) : boolean =>
378+ isUserProfile ( ) &&
379+ new URLSearchParams ( location . search ) . get ( 'tab' ) === 'repositories' ;
380+ export const _isUserProfileRepoTab = domBased ;
381+
376382export const isSingleTagPage = ( ) : boolean => / ^ ( r e l e a s e s \/ t a g ) / . test ( getRepoPath ( ) ! ) ;
377383export const _isSingleTagPage = [
378384 'https://github.com/sindresorhus/refined-github/releases/tag/v1.0.0-beta.4' ,
You can’t perform that action at this time.
0 commit comments