-c.hints.selectors = {'all': ['a', 'area', 'textarea', 'select',
- 'input:not([type="hidden"])', 'button', 'frame',
- 'iframe', 'img', 'link', 'summary',
- '[contenteditable]:not([contenteditable="false"])',
- '[onclick]', '[onmousedown]', '[role="link"]',
- '[role="option"]', '[role="button"]',
- '[role="tab"]', '[role="checkbox"]',
- '[role="menuitem"]', '[role="menuitemcheckbox"]',
- '[role="menuitemradio"]', '[role="treeitem"]',
- '[ng-click]', '[ngClick]', '[data-ng-click]',
- '[x-ng-click]', '[tabindex]:not([tabindex="-1"])'],
- 'links': ['a[href]', 'area[href]', 'link[href]', '[role="link"][href]'],
- 'images': ['img'],
- 'media': ['audio', 'img', 'video'],
- 'url': ['[src]', '[href]'],
- 'inputs': ['input[type="text"]', 'input[type="date"]',
- 'input[type="datetime-local"]',
- 'input[type="email"]', 'input[type="month"]',
- 'input[type="number"]', 'input[type="password"]',
- 'input[type="search"]', 'input[type="tel"]',
- 'input[type="time"]', 'input[type="url"]',
- 'input[type="week"]', 'input:not([type])',
- '[contenteditable]:not([contenteditable="false"])',
- 'textarea']
- }
+# TODO: reduce hints on some websites like reddit
+c.hints.selectors = {
+ 'all': [
+ 'a', 'area', 'textarea', 'select', 'input:not([type="hidden"])',
+ 'button', 'frame', 'iframe', 'img', 'link', 'summary',
+ '[contenteditable]:not([contenteditable="false"])', '[onclick]',
+ '[onmousedown]', '[role="link"]', '[role="option"]', '[role="button"]',
+ '[role="tab"]', '[role="checkbox"]', '[role="menuitem"]',
+ '[role="menuitemcheckbox"]', '[role="menuitemradio"]',
+ '[role="treeitem"]', '[aria-haspopup]', '[ng-click]', '[ngClick]',
+ '[data-ng-click]', '[x-ng-click]', '[tabindex]:not([tabindex="-1"])'
+ ],
+ 'links': ['a[href]', 'area[href]', 'link[href]', '[role="link"][href]'],
+ 'images': ['img'],
+ 'media': ['audio', 'img', 'video'],
+ 'url': ['[src]', '[href]'],
+ 'inputs': [
+ 'input[type="text"]', 'input[type="date"]',
+ 'input[type="datetime-local"]', 'input[type="email"]',
+ 'input[type="month"]', 'input[type="number"]',
+ 'input[type="password"]', 'input[type="search"]', 'input[type="tel"]',
+ 'input[type="time"]', 'input[type="url"]', 'input[type="week"]',
+ 'input:not([type])',
+ '[contenteditable]:not([contenteditable="false"])', 'textarea'
+ ]
+}