From cc79f53510c4a766965aed1808490931bc6ade6b Mon Sep 17 00:00:00 2001 From: tzlil Date: Mon, 7 Aug 2023 23:22:45 +0300 Subject: try to add cyberchef search engine, move vps to networkd, change website, move git to git.tzlil.net --- mixins/firefox/absolute-minimum.nix | 3 ++- mixins/firefox/default.nix | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) (limited to 'mixins') 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"]; + }; }; }; -- cgit 1.4.1