summaryrefslogtreecommitdiff
path: root/source/features/hide-useless-newsfeed-events.tsx
blob: 6952c5f78b5e24ac3da1f42795843c04aac8ab77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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({
	id: __filebasename,
	description: 'Hides inutile newsfeed events (commits, forks, new followers).',
	screenshot: false
}, {
	include: [
		pageDetect.isDashboard
	],
	waitForDomReady: false,
	init: onetime(init)
});