diff --git a/modules/home.nix b/modules/home.nix index c57b38b..0345722 100644 --- a/modules/home.nix +++ b/modules/home.nix @@ -7,6 +7,7 @@ { imports = [ ./nix/user.nix + ./nix/qutebrowser.nix ./nix/nvim/default.nix ./nix/hypr/default.nix ./nix/bspwm/default.nix diff --git a/modules/nix/qutebrowser.nix b/modules/nix/qutebrowser.nix index 859726a..a2f5de2 100644 --- a/modules/nix/qutebrowser.nix +++ b/modules/nix/qutebrowser.nix @@ -8,32 +8,49 @@ qutebrowser = { enable = true; extraConfig = '' - c.colors.webpage.darkmode.enabled = True - config.load_autoconfig(True) - config.set("content.cookies.accept", "all", "chrome-devtools://*") - config.set("content.cookies.accept", "all", "devtools://*") - config.set("content.headers.accept_language", "", "https://matchmaker.krunker.io/*") - 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.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" + c.content.blocking.method = 'adblock' + c.content.blocking.adblock.lists = [ + "https://github.com/uBlockOrigin/uAssets/raw/master/filters/legacy.txt", + "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters.txt", + "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters-2020.txt", + "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters-2021.txt", + "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters-2022.txt", + "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters-2023.txt", + "https://github.com/uBlockOrigin/uAssets/raw/master/filters/badware.txt", + "https://github.com/uBlockOrigin/uAssets/raw/master/filters/privacy.txt", + "https://github.com/uBlockOrigin/uAssets/raw/master/filters/badlists.txt", + "https://github.com/uBlockOrigin/uAssets/raw/master/filters/annoyances.txt", + "https://github.com/uBlockOrigin/uAssets/raw/master/filters/annoyances-cookies.txt", + "https://github.com/uBlockOrigin/uAssets/raw/master/filters/annoyances-others.txt", + "https://github.com/uBlockOrigin/uAssets/raw/master/filters/badlists.txt", + "https://github.com/uBlockOrigin/uAssets/raw/master/filters/quick-fixes.txt", + "https://github.com/uBlockOrigin/uAssets/raw/master/filters/resource-abuse.txt", + "https://github.com/uBlockOrigin/uAssets/raw/master/filters/unbreak.txt"] + config.load_autoconfig(True) + config.set("content.cookies.accept", "all", "chrome-devtools://*") + config.set("content.cookies.accept", "all", "devtools://*") + config.set("content.headers.accept_language", "", "https://matchmaker.krunker.io/*") + 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.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_soft = "#32302f" bg0_normal = "#282828"