@@ -54,6 +54,12 @@ collect.set('isCompare', [
54
54
'https://github.com/sindresorhus/refined-github/compare/test-branch?quick_pull=1' ,
55
55
] ) ;
56
56
57
+ export const isCompareWikiPage = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => isRepoWiki ( url ) && getCleanPathname ( url ) . split ( '/' ) . slice ( 3 , 5 ) . includes ( '_compare' ) ;
58
+ collect . set ( 'isCompareWikiPage' , [
59
+ 'https://github.com/brookhong/Surfingkeys/wiki/_compare/8ebb46b1a12d16fc1af442b7df0ca13ca3bb34dc...80e51eeabe69b15a3f23880ecc36f800b71e6c6d' ,
60
+ 'https://github.com/brookhong/Surfingkeys/wiki/Color-Themes/_compare/8ebb46b1a12d16fc1af442b7df0ca13ca3bb34dc...80e51eeabe69b15a3f23880ecc36f800b71e6c6d' ,
61
+ ] ) ;
62
+
57
63
export const isDashboard = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => ! isGist ( url ) && / ^ $ | ^ ( o r g s \/ [ ^ / ] + \/ ) ? d a s h b o a r d ( \/ | $ ) / . test ( getCleanPathname ( url ) ) ;
58
64
collect . set ( 'isDashboard' , [
59
65
'https://github.com///' ,
@@ -469,6 +475,8 @@ collect.set('isRepoWiki', [
469
475
'https://github.com/lukesampson/scoop/wiki' ,
470
476
'https://github.com/tooomm/wikitest/wiki/_new' ,
471
477
'https://github.com/tooomm/wikitest/wiki/Getting-Started/_edit' ,
478
+ 'https://github.com/brookhong/Surfingkeys/wiki/_compare/8ebb46b1a12d16fc1af442b7df0ca13ca3bb34dc...80e51eeabe69b15a3f23880ecc36f800b71e6c6d' ,
479
+ 'https://github.com/brookhong/Surfingkeys/wiki/Color-Themes/_compare/8ebb46b1a12d16fc1af442b7df0ca13ca3bb34dc...80e51eeabe69b15a3f23880ecc36f800b71e6c6d' ,
472
480
] ) ;
473
481
474
482
export const isSingleCommit = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ c o m m i t \/ [ \d a - f ] { 5 , 40 } $ / . test ( getRepo ( url ) ?. path ! ) ;
@@ -609,6 +617,7 @@ export const hasCode = (url: URL | HTMLAnchorElement | Location = location): boo
609
617
|| isSingleFile ( url )
610
618
|| isGist ( url )
611
619
|| isCompare ( url )
620
+ || isCompareWikiPage ( url )
612
621
|| isBlame ( url ) ;
613
622
614
623
collect . set ( 'hasFiles' , combinedTestOnly ) ;
0 commit comments