1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/** The repo navigation bar */
export const repoUnderlineNavUl = '.js-responsive-underlinenav ul.UnderlineNav-body';
export const repoUnderlineNavUl_ = [
'https://github.com/refined-github/refined-github',
'https://github.com/refined-github/refined-github/releases',
];
/** The repo navigation bar’s overflow menu */
export const repoUnderlineNavDropdownUl = '.js-responsive-underlinenav .dropdown-menu ul';
export const repoUnderlineNavDropdownUl_ = repoUnderlineNavUl_;
export const branchSelector = '[data-hotkey="w"]';
export const branchSelector_ = [
'https://github.com/refined-github/refined-github',
'https://github.com/refined-github/refined-github/blob/main/readme.md',
'https://github.com/refined-github/refined-github/blame/main/readme.md',
'https://github.com/refined-github/refined-github/tree/main/source',
'https://github.com/refined-github/sandbox/tree/branch/with/slashes',
'https://github.com/refined-github/sandbox/commits/branch/with/slashes',
'https://github.com/refined-github/sandbox/commits',
];
export const branchSelectorParent = 'details#branch-select-menu';
export const branchSelectorParent_ = branchSelector_;
export const directoryListingFileIcon = [
// .color-fg-muted selects only files; some icon extensions use `img` tags
'.react-directory-filename-column > :is(svg, img).color-fg-muted',
'.js-navigation-container .octicon-file',
];
export const directoryListingFileIcon_ = [
'https://github.com/refined-github/refined-github',
'https://github.com/refined-github/refined-github/tree/main/.github',
];
export const prCommit = '.TimelineItem--condensed:has(.octicon-git-commit)';
export const prCommit_ = [
'https://github.com/refined-github/sandbox/pull/10',
];
// `summary` is needed because the details dropdown contains the list of check runs, each with its status icon
export const prCommitStatusIcon = `:is(${prCommit}) details.commit-build-statuses summary .octicon`;
export const prCommitStatusIcon_ = [
'https://github.com/refined-github/sandbox/pull/10',
];
export const actionsTab = '#actions-tab';
export const actionsTab_ = [
'https://github.com/refined-github/sandbox',
];
export const codeSearchHeader = 'div:has(>:is([aria-label^="Collapse "], [aria-label^="Expand "]))';
export const codeSearchHeader_ = [
'https://github.com/search?q=repo%3Arefined-github%2Frefined-github&type=code',
];
|