From 2a7548343fdc15a98806049d1dac38acc4a44949 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Fri, 10 Oct 2025 13:35:05 +0200 Subject: [PATCH] disable js in pdf --- home-manager/firefox/config/browser-features.nix | 2 +- home-manager/firefox/config/privacy.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/home-manager/firefox/config/browser-features.nix b/home-manager/firefox/config/browser-features.nix index 103e83d..d6f3058 100644 --- a/home-manager/firefox/config/browser-features.nix +++ b/home-manager/firefox/config/browser-features.nix @@ -119,7 +119,7 @@ # Disable Javascript in PDF viewer # Disables executing of JavaScript in the PDF form viewer. It is possible that # some PDFs are not rendered correctly due to missing functions. - "pdfjs.enableScripting" = true; + "pdfjs.enableScripting" = false; # copied these from a blog "browser.newtabpage.activity-stream.feeds.telemetry" = false; diff --git a/home-manager/firefox/config/privacy.nix b/home-manager/firefox/config/privacy.nix index 990ed8b..946007d 100644 --- a/home-manager/firefox/config/privacy.nix +++ b/home-manager/firefox/config/privacy.nix @@ -78,6 +78,7 @@ # Disable the clipboardevents. # Disable that websites can get notifications if you copy, paste, or cut something # from a web page, and it lets them know which part of the page had been selected. + # Enabled as it is needed by some webapps I use. #"dom.event.clipboardevents.enabled" = false; "dom.event.clipboardevents.enabled" = true; # Disable Search Suggestions