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

import features from '.';

function init(): void {
	document.body.classList.add('rgh-no-useless-events');
}

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