blob: d5fab4bcae8474918fe57d15125dac023409662b (
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
|
import select from 'select-dom';
import * as pageDetect from 'github-url-detection';
import features from '.';
function init(): false | void {
const originalPreviousNext = select('.commit .BtnGroup.float-right');
if (!originalPreviousNext) {
return false;
}
const previousNext = originalPreviousNext.cloneNode(true);
const files = select('#files')!;
files.after(previousNext);
}
void features.add({
id: __filebasename,
description: 'Adds duplicate commit navigation buttons at the bottom of the `Commits` tab page.',
screenshot: 'https://user-images.githubusercontent.com/24777/41755271-741773de-75a4-11e8-9181-fcc1c73df633.png'
}, {
include: [
pageDetect.isPRFiles,
pageDetect.isPRCommit
],
init
});
|