summaryrefslogtreecommitdiff
path: root/source/features/hide-issue-list-autocomplete.tsx
blob: 629714b7c4388080e5c1f855413f3c0389de4e27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import select from 'select-dom';
import * as pageDetect from 'github-url-detection';

import features from '.';

function init(): void {
	select('.subnav-search')!.setAttribute('autocomplete', 'off');
}

void features.add({
	id: __filebasename,
	description: 'Removes the autocomplete on search fields.',
	screenshot: 'https://user-images.githubusercontent.com/1402241/42991841-1f057e4e-8c07-11e8-909c-b051db7a2a03.png'
}, {
	include: [
		pageDetect.isConversationList
	],
	init
});