qutebrowser config, qute-bitwarden modification

This commit is contained in:
opal
2022-11-01 17:55:23 -07:00
parent c1c6874078
commit eda13fd917
3 changed files with 11 additions and 9 deletions

View File

@@ -4,3 +4,4 @@
(package! modus-themes)
(package! quelpa)
(package! quelpa-use-package)
(package! w3m)

View File

@@ -9,17 +9,17 @@ config.load_autoconfig()
dracula.draw.blood(c, {"spacing": {"vertical": 6, "horizontal": 8}})
def intercept(info: interceptor.Request):
if info.request_url.host() == "youtube.com":
new_url = QUrl(info.request_url)
new_url.setHost("vid.puffyan.us")
try:
info.redirect(new_url)
except interceptor.interceptors.RedirectException:
pass
# def intercept(info: interceptor.Request):
# if info.request_url.host() == "youtube.com":
# new_url = QUrl(info.request_url)
# new_url.setHost("vid.puffyan.us")
# try:
# info.redirect(new_url)
# except interceptor.interceptors.RedirectException:
# pass
interceptor.register(intercept)
# interceptor.register(intercept)
c.qt.highdpi = True
c.fonts.default_size = "15pt"

View File

@@ -280,6 +280,7 @@ def main(arguments):
c["login"]["username"] = ""
choices.append("{:s} | {:s}".format(c["name"], c["login"]["username"]))
# choices = [
# "{:s} | {:s}".format(c["name"], c["login"]["username"]) for c in candidates
# ]