From 4052357e021085bc1c761108446ee09a778ade15 Mon Sep 17 00:00:00 2001 From: Mohammad Reza Karimi Date: Sun, 18 Jan 2026 01:33:29 -0500 Subject: big updates --- qute/dot-config/qutebrowser/config.py | 15 +++++++++++---- qute/dot-config/qutebrowser/greasemonkey/whatsapp.js | 3 +++ qute/dot-config/qutebrowser/startpage.html | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) (limited to 'qute/dot-config') diff --git a/qute/dot-config/qutebrowser/config.py b/qute/dot-config/qutebrowser/config.py index 8b6ce2c..feaf581 100644 --- a/qute/dot-config/qutebrowser/config.py +++ b/qute/dot-config/qutebrowser/config.py @@ -18,7 +18,7 @@ c.completion.open_categories = [ "filesystem", ] -c.new_instance_open_target = "tab-bg" +c.new_instance_open_target = "tab" c.tabs.show = "multiple" c.tabs.last_close = "close" @@ -63,11 +63,16 @@ config.bind( c.editor.command = ["alacritty", "-e", "nvim", "{file}", "-c", "normal {line}G{column}"] +# c.aliases.update( +# { +# "save-to-zotero": """jseval --quiet var d=document,s=d.createElement("script");s.src="https://www.zotero.org/bookmarklet/loader.js";(d.body?d.body:d.documentElement).appendChild(s);void(0);""", +# "zotero": "spawn --userscript qute-zotero", +# } +# ) + c.colors.statusbar.private.bg = "#CF87E8" c.colors.webpage.preferred_color_scheme = "dark" - -# c.colors.webpage.darkmode.enabled = True c.colors.webpage.darkmode.algorithm = "lightness-cielab" c.colors.webpage.darkmode.threshold.foreground = 150 c.colors.webpage.darkmode.threshold.background = 100 @@ -81,7 +86,9 @@ with config.pattern("*://*.slack.com/*") as p: p.content.unknown_url_scheme_policy = "allow-all" with config.pattern("*://accounts.google.com/*") as p: - p.content.headers.user_agent = "Mozilla/5.0 ({os_info}; rv:131.0) Gecko/20100101 Firefox/131.0" + p.content.headers.user_agent = ( + "Mozilla/5.0 ({os_info}; rv:131.0) Gecko/20100101 Firefox/131.0" + ) c.content.blocking.enabled = True c.content.blocking.method = "both" diff --git a/qute/dot-config/qutebrowser/greasemonkey/whatsapp.js b/qute/dot-config/qutebrowser/greasemonkey/whatsapp.js index a7c9a42..587b09a 100644 --- a/qute/dot-config/qutebrowser/greasemonkey/whatsapp.js +++ b/qute/dot-config/qutebrowser/greasemonkey/whatsapp.js @@ -20,6 +20,9 @@ span[dir="rtl"] { font-family: "Vazirmatn RD UI" !important; } + div[dir="rtl"] > span.quoted-mention { + font-family: "Vazirmatn RD UI" !important; + } footer p[dir="rtl"] span { font-family: "Vazirmatn RD UI" !important; }`; diff --git a/qute/dot-config/qutebrowser/startpage.html b/qute/dot-config/qutebrowser/startpage.html index 51b294b..bf53c0d 100644 --- a/qute/dot-config/qutebrowser/startpage.html +++ b/qute/dot-config/qutebrowser/startpage.html @@ -4,7 +4,7 @@ about:blank