From 75b649543a07b4fe14c0b4d926fe2ed953f5952b Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 3 Jan 2024 13:42:58 +0000 Subject: [PATCH] firefox: enable ctrl-shift-c-should-copy extension --- hosts/common/programs/firefox.nix | 4 ++++ .../ctrl-shift-c-should-copy/default.nix | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/hosts/common/programs/firefox.nix b/hosts/common/programs/firefox.nix index ffa33cc65..f452ce8c1 100644 --- a/hosts/common/programs/firefox.nix +++ b/hosts/common/programs/firefox.nix @@ -178,6 +178,10 @@ in package = pkgs.firefox-extensions.bypass-paywalls-clean; enable = lib.mkDefault true; }; + ctrl-shift-c-should-copy = { + package = pkgs.firefox-extensions.ctrl-shift-c-should-copy; + enable = lib.mkDefault true; + }; ether-metamask = { package = pkgs.firefox-extensions.ether-metamask; enable = lib.mkDefault false; # until i can disable the first-run notification diff --git a/pkgs/additional/firefox-extensions/ctrl-shift-c-should-copy/default.nix b/pkgs/additional/firefox-extensions/ctrl-shift-c-should-copy/default.nix index 25b893a54..f7bb17732 100644 --- a/pkgs/additional/firefox-extensions/ctrl-shift-c-should-copy/default.nix +++ b/pkgs/additional/firefox-extensions/ctrl-shift-c-should-copy/default.nix @@ -33,6 +33,14 @@ stdenv.mkDerivation { meta = { homepage = "https://github.com/jscher2000/Ctrl-Shift-C-Should-Copy"; description = "Potential Firefox extension to intercept Ctrl+Shift+C, block opening developer tools, and copy the selection to the clipboard."; + longDescription = '' + it comes with several limitations: + - doesn't work on new-tab page + - doesn't work if the focus isn't on page content + - e.g. ctrl+shift+c from URL bar still brings up dev console, incorrectly. + + the proper fix to disabling Ctrl+Shift+C seems to require compiling Firefox from source, as of their Quantum project post-2019. + ''; maintainer = with lib.maintainers; [ colinsane ]; }; }