From 8e0acb1e44c75d29a5ab689341e26aa246a034de Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 10 Mar 2021 13:32:42 -0600 Subject: [PATCH] trying to add homeassistant cards as selectors --- qutebrowser/config.py | 48 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 3113214..91f0ae5 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -1495,7 +1495,53 @@ c.hints.radius = 6 ## CSS selectors used to determine which elements on a page should have ## hints. ## Type: Dict -# c.hints.selectors = {'all': ['a', 'area', 'textarea', 'select', 'input:not([type="hidden"])', 'button', 'frame', 'iframe', 'img', 'link', 'summary', '[onclick]', '[onmousedown]', '[role="link"]', '[role="option"]', '[role="button"]', '[ng-click]', '[ngClick]', '[data-ng-click]', '[x-ng-click]', '[tabindex]'], '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])', 'textarea']} +# c.hints.selectors = {'all': ['a', +# 'area', +# 'textarea', +# 'select', +# 'input:not([type="hidden"])', +# 'button', +# 'frame', +# 'iframe', +# 'img', +# 'link', +# 'summary', +# '[onclick]', +# '[onmousedown]', +# '[role="link"]', +# '[role="option"]', +# '[role="button"]', +# '[ng-click]', +# '[ngClick]', +# '[data-ng-click]', +# '[x-ng-click]', +# '[tabindex]'], +# '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])', +# 'textarea']} + +c.hints.selectors['all'].append('ha-icon') ## Make characters in hint strings uppercase. ## Type: Bool