File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 25
25
// @exclude -match https://github.com/topics*
26
26
// @exclude -match https://github.com/trending*
27
27
// @exclude -match https://github.com/users/*/projects/*
28
- // @version 1.7
28
+ // @version 1.7.1
29
29
// @createdAt 4/06/2020
30
30
// @author StaticPH
31
31
// @description Adds a navigation tab for faster access to the 'Network' page of a repository.
84
84
//TODO: Consider insertion at Nth element position, rather than relative to PR tab.
85
85
setTimeout ( function wait ( ) {
86
86
/* Find the 'Pull Requests' tab; inserting the new Network tab immediately after it ensures consistent placement. */
87
- const repoPullsTab = document . querySelectorAll ( '[data-seleced -links*="repo_pulls"]' ) ;
87
+ const repoPullsTab = document . querySelectorAll ( '[data-selected -links*="repo_pulls"]' ) ;
88
88
const dropdownRetryLimit = 5 ;
89
89
let dropdownRetries = 0 ;
90
90
93
93
repoPullsTab [ 0 ] . insertAdjacentHTML ( 'afterend' , createBigNetworkTabHTML ( ) ) ;
94
94
document . getElementById ( 'bigNetworkTab' ) && console . debug ( 'Added big Network tab.' ) ;
95
95
96
- if ( repoPullsTab . length >= 1 ) {
96
+ if ( repoPullsTab . length > 1 ) {
97
97
repoPullsTab [ 1 ] . insertAdjacentHTML ( 'afterend' , createSmallNetworkTabHTML ( ) ) ;
98
98
document . getElementById ( 'smallNetworkTab' ) && console . debug ( 'Added small Network tab.' ) ;
99
99
}
You can’t perform that action at this time.
0 commit comments