This commit is contained in:
meml0rz
2024-12-13 01:00:43 +01:00
parent 2045692ad5
commit ae592abb68
2 changed files with 44 additions and 26 deletions

View File

@ -7,6 +7,7 @@
{ {
imports = [ imports = [
./nix/user.nix ./nix/user.nix
./nix/qutebrowser.nix
./nix/nvim/default.nix ./nix/nvim/default.nix
./nix/hypr/default.nix ./nix/hypr/default.nix
./nix/bspwm/default.nix ./nix/bspwm/default.nix

View File

@ -8,32 +8,49 @@
qutebrowser = { qutebrowser = {
enable = true; enable = true;
extraConfig = '' extraConfig = ''
c.colors.webpage.darkmode.enabled = True c.content.blocking.method = 'adblock'
config.load_autoconfig(True) c.content.blocking.adblock.lists = [
config.set("content.cookies.accept", "all", "chrome-devtools://*") "https://github.com/uBlockOrigin/uAssets/raw/master/filters/legacy.txt",
config.set("content.cookies.accept", "all", "devtools://*") "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters.txt",
config.set("content.headers.accept_language", "", "https://matchmaker.krunker.io/*") "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters-2020.txt",
config.set("content.headers.user_agent", "Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version}", "https://web.whatsapp.com/") "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters-2021.txt",
config.set("content.headers.user_agent", "Mozilla/5.0 ({os_info}; rv:90.0) Gecko/20100101 Firefox/90.0", "https://accounts.google.com/*") "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters-2022.txt",
config.set("content.images", True, "chrome-devtools://*") "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters-2023.txt",
config.set("content.images", True, "devtools://*") "https://github.com/uBlockOrigin/uAssets/raw/master/filters/badware.txt",
config.set("content.javascript.enabled", True, "chrome-devtools://*") "https://github.com/uBlockOrigin/uAssets/raw/master/filters/privacy.txt",
config.set("content.javascript.enabled", True, "devtools://*") "https://github.com/uBlockOrigin/uAssets/raw/master/filters/badlists.txt",
config.set("content.javascript.enabled", True, "chrome://*/*") "https://github.com/uBlockOrigin/uAssets/raw/master/filters/annoyances.txt",
config.set("content.javascript.enabled", True, "qute://*/*") "https://github.com/uBlockOrigin/uAssets/raw/master/filters/annoyances-cookies.txt",
config.set("content.local_content_can_access_remote_urls", True, "file:///home/fabian/.local/share/qutebrowser/userscripts/*") "https://github.com/uBlockOrigin/uAssets/raw/master/filters/annoyances-others.txt",
config.set("content.local_content_can_access_file_urls", False, "file:///home/fabian/.local/share/qutebrowser/userscripts/*") "https://github.com/uBlockOrigin/uAssets/raw/master/filters/badlists.txt",
config.set("colors.webpage.darkmode.enabled", True) "https://github.com/uBlockOrigin/uAssets/raw/master/filters/quick-fixes.txt",
config.bind(";st", ":open speedtest.net") "https://github.com/uBlockOrigin/uAssets/raw/master/filters/resource-abuse.txt",
config.bind("Right", "tab-next") "https://github.com/uBlockOrigin/uAssets/raw/master/filters/unbreak.txt"]
config.bind("Left", "tab-prev") config.load_autoconfig(True)
config.bind(">", ":forward") config.set("content.cookies.accept", "all", "chrome-devtools://*")
config.bind("<", ":back") config.set("content.cookies.accept", "all", "devtools://*")
config.bind(";r", ":config-source") config.set("content.headers.accept_language", "", "https://matchmaker.krunker.io/*")
config.bind(";q", ":tab-close") config.set("content.headers.user_agent", "Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version}", "https://web.whatsapp.com/")
config.bind(";f", ":fullscreen") config.set("content.headers.user_agent", "Mozilla/5.0 ({os_info}; rv:90.0) Gecko/20100101 Firefox/90.0", "https://accounts.google.com/*")
config.set("content.images", True, "chrome-devtools://*")
config.set("content.images", True, "devtools://*")
config.set("content.javascript.enabled", True, "chrome-devtools://*")
config.set("content.javascript.enabled", True, "devtools://*")
config.set("content.javascript.enabled", True, "chrome://*/*")
config.set("content.javascript.enabled", True, "qute://*/*")
config.set("content.local_content_can_access_remote_urls", True, "file:///home/fabian/.local/share/qutebrowser/userscripts/*")
config.set("content.local_content_can_access_file_urls", False, "file:///home/fabian/.local/share/qutebrowser/userscripts/*")
config.set("colors.webpage.darkmode.enabled", True)
config.bind(";st", ":open speedtest.net")
config.bind("Right", "tab-next")
config.bind("Left", "tab-prev")
config.bind(">", ":forward")
config.bind("<", ":back")
config.bind(";r", ":config-source")
config.bind(";q", ":tab-close")
config.bind(";f", ":fullscreen")
bg0_hard = "#181818" bg0_hard = "#181818"
bg0_soft = "#32302f" bg0_soft = "#32302f"
bg0_normal = "#282828" bg0_normal = "#282828"