summaryrefslogtreecommitdiff
path: root/source/features/linkify-full-profile-readme-title.tsx
blob: deafc85dbbd24a6e314b411a3ae4f3371d22f4d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import select from 'select-dom';
import * as pageDetect from 'github-url-detection';

import features from '.';

function init(): void {
	const link = select('.user-profile-nav + div .octicon-smiley + a');
	while (link?.nextSibling) {
		link.append(link.nextSibling);
	}
}

void features.add(__filebasename, {
	include: [
		pageDetect.isUserProfileMainTab
	],
	init
});