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 .text-mono a');
	while (link?.nextSibling) {
		link.append(link.nextSibling);
	}
}

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