summaryrefslogtreecommitdiff
path: root/source/features/hide-watch-and-fork-count.tsx
blob: b1c942f01a62f90e35fdd492de997579c7909a9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import './hide-watch-and-fork-count.css';
import onetime from 'onetime';
import * as pageDetect from 'github-url-detection';

import features from '.';

function init(): void {
	document.body.classList.add('rgh-hide-watch-and-fork-count');
}

void features.add(__filebasename, {
	include: [
		pageDetect.isRepo
	],
	awaitDomReady: false,
	init: onetime(init)
});