summaryrefslogtreecommitdiff
path: root/source/github-helpers/selectors.ts
blob: 24663e43ab8eb78ec244a0aab57e23dac067ea9d (plain) (blame)
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
export const underlineNavDropdownUl = '.js-responsive-underlinenav .dropdown-menu ul';
export const underlineNavDropdownUl_ = [
	'https://github.com/refined-github/refined-github',
	'https://github.com/refined-github/refined-github/releases',
];

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',
];