summary refs log tree commit diff
path: root/mixins/firefox
diff options
context:
space:
mode:
Diffstat (limited to 'mixins/firefox')
-rw-r--r--mixins/firefox/absolute-minimum.nix3
-rw-r--r--mixins/firefox/default.nix17
2 files changed, 19 insertions, 1 deletions
diff --git a/mixins/firefox/absolute-minimum.nix b/mixins/firefox/absolute-minimum.nix
index 3a9eb9a..579df93 100644
--- a/mixins/firefox/absolute-minimum.nix
+++ b/mixins/firefox/absolute-minimum.nix
@@ -27,7 +27,8 @@ in
       addons = cfg.firefox.profiles.${profile}.extensions;
       extensionPath = "extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}";
 
-      extensionsData = pkgs.runCommand "extensions.json" {
+      extensionsData =
+        pkgs.runCommand "extensions.json" {
           buildInputs = [
             pkgs.xvfb-run
             pkgs.mozlz4a
diff --git a/mixins/firefox/default.nix b/mixins/firefox/default.nix
index 08233eb..977de28 100644
--- a/mixins/firefox/default.nix
+++ b/mixins/firefox/default.nix
@@ -284,6 +284,23 @@ in
                 iconUpdateURL = "https://invidious.io/favicon.ico";
                 definedAliases = ["!yt"];
               };
+
+              "Cyberchef" = {
+                urls = [
+                  {
+                    template = ''javascript:q="%s";location.href="https://cyberchef.org/#recipe=Magic(3,false,false,\'\')&input="+btoa(q)'';
+                    params = [
+                      {
+                        name = "q";
+                        value = "{searchTerms}";
+                      }
+                    ];
+                  }
+                ];
+
+                iconUpdateURL = "https://cyberchef.org/favicon.ico";
+                definedAliases = ["!cc"];
+              };
             };
           };