blob: 9aafc3666261527ec81c844e2f1997863ac6faa3 (
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
|
import select from 'select-dom';
import features from '../libs/features';
function init(): false | void {
const originalPrevNext = select('.commit .BtnGroup.float-right');
if (!originalPrevNext) {
return false;
}
const prevNext = originalPrevNext.cloneNode(true);
const files = select('#files')!;
files.after(prevNext);
}
features.add({
id: __featureName__,
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: [
features.isPRFiles,
features.isPRCommit
],
load: features.onAjaxedPages,
init
});
|