summaryrefslogtreecommitdiff
path: root/source/features/profile-hotkey.tsx
blob: 08e8ddad30a8b94e2f69257661c2260dd7e013a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import select from 'select-dom';
import onetime from 'onetime';

import features from '.';

function init(): void {
	select('a[data-ga-click$="text:your profile"]')!.dataset.hotkey = 'g m';
}

void features.add(__filebasename, {
	shortcuts: {
		'g m': 'Go to Profile'
	},
	init: onetime(init)
});