From 11b927189bab258a226e251c1bd87504feee51f4 Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Thu, 17 Jan 2019 19:57:53 +0700 Subject: Drop Babel in favor of esm and TypeScript (#1726) To get some meaningful errors during feature development, I thought it'd be useful to use TypeScript on `features.js` only, hoping to keep it contained to that file. @sindresorhus suggested we just extend it the whole extension and maybe that can be done incrementally, without having to necessarily use types on everything. --- source/features/hide-issue-list-autocomplete.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 source/features/hide-issue-list-autocomplete.tsx (limited to 'source/features/hide-issue-list-autocomplete.tsx') diff --git a/source/features/hide-issue-list-autocomplete.tsx b/source/features/hide-issue-list-autocomplete.tsx new file mode 100644 index 00000000..78a86084 --- /dev/null +++ b/source/features/hide-issue-list-autocomplete.tsx @@ -0,0 +1,15 @@ +import select from 'select-dom'; +import features from '../libs/features'; + +function init() { + select('.subnav-search').setAttribute('autocomplete', 'off'); +} + +features.add({ + id: 'hide-issue-list-autocomplete', + include: [ + features.isIssueList + ], + load: features.onAjaxedPages, + init +}); -- cgit v1.2.3