summaryrefslogtreecommitdiff
path: root/source/features/remove-diff-signs.tsx
blob: 67459f4446ac7122d05ee09720994d2e60046b7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import './remove-diff-signs.css';
import * as pageDetect from 'github-url-detection';

import features from '.';

function init(): void {
	document.body.classList.add('rgh-remove-diff-signs');
}

void features.add({
	id: __filebasename,
	description: 'Hides diff signs (+-) since diffs are color coded already.',
	screenshot: 'https://user-images.githubusercontent.com/1402241/54807718-149cec80-4cb9-11e9-869c-e265863211e3.png'
}, {
	include: [
		pageDetect.hasCode
	],
	waitForDomReady: false,
	init
});