qutebrowser config, qute-bitwarden modification
This commit is contained in:
@@ -4,3 +4,4 @@
|
||||
(package! modus-themes)
|
||||
(package! quelpa)
|
||||
(package! quelpa-use-package)
|
||||
(package! w3m)
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
# ]
|
||||
|
||||
Reference in New Issue
Block a user