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 @@ -307,7 +307,8 @@ export const _isRepoRoot = [
307307 'https://github.com/sindresorhus/refined-github/tree/03fa6b8b4d6e68dea9dc9bee1d197ef5d992fbd6/' ,
308308 'https://github.com/sindresorhus/refined-github/tree/57bf4' ,
309309 'https://github.com/sindresorhus/refined-github?files=1' ,
310- 'https://github.com/sindresorhus/refined-github/tree/master?files=1'
310+ 'https://github.com/sindresorhus/refined-github/tree/master?files=1' ,
311+ 'https://github.com/sindresorhus/branches'
311312] ;
312313
313314export const isRepoSearch = ( ) : boolean => location . pathname . slice ( 1 ) . split ( '/' ) [ 2 ] === 'search' ;
@@ -366,6 +367,11 @@ export const _isTrending = [
366367 'https://github.com/trending/unknown'
367368] ;
368369
370+ export const isBranches = ( ) : boolean => getRepoPath ( ) ?. startsWith ( 'branches' ) ?? false ;
371+ export const _isBranches = [
372+ 'https://github.com/sindresorhus/refined-github/branches'
373+ ] ;
374+
369375export const isUserProfile = ( ) : boolean => select . exists ( '.user-profile-nav' ) ;
370376export const _isUserProfile = domBased ;
371377
You can’t perform that action at this time.
0 commit comments