From fd5f89493470df8a64676cd78167c04673e798b8 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 31 Jan 2025 14:43:01 +0800 Subject: [PATCH] pkgs/firefox-addons: add cookies.txt and Tor control --- pkgs/firefox-addons/default.nix | 41 +++++++++++++++++++++++++ pkgs/firefox-addons/firefox-addons.json | 6 ++++ 2 files changed, 47 insertions(+) diff --git a/pkgs/firefox-addons/default.nix b/pkgs/firefox-addons/default.nix index 0a1f8f80..246c6b51 100644 --- a/pkgs/firefox-addons/default.nix +++ b/pkgs/firefox-addons/default.nix @@ -1,5 +1,25 @@ { buildFirefoxXpiAddon, fetchurl, lib, stdenv }: { + "cookies-txt" = buildFirefoxXpiAddon { + pname = "cookies-txt"; + version = "0.7"; + addonId = "{12cf650b-1822-40aa-bff0-996df6948878}"; + url = "https://addons.mozilla.org/firefox/downloads/file/4368538/cookies_txt-0.7.xpi"; + sha256 = "04ff7cf1fbebdba3c112fbd4d4ea83f90a08d8a267e63d44cca210659080930e"; + meta = with lib; + { + description = "Exports all cookies to a Netscape HTTP Cookie File, as used by curl, wget, and youtube-dl, among others."; + license = licenses.gpl3; + mozPermissions = [ + "cookies" + "downloads" + "contextualIdentities" + "" + "tabs" + ]; + platforms = platforms.all; + }; + }; "extended-color-management" = buildFirefoxXpiAddon { pname = "extended-color-management"; version = "1.1.1"; @@ -199,6 +219,27 @@ platforms = platforms.all; }; }; + "tor-control" = buildFirefoxXpiAddon { + pname = "tor-control"; + version = "0.1.5"; + addonId = "{d22a1484-dcef-44e9-ab52-80f0f4a331a3}"; + url = "https://addons.mozilla.org/firefox/downloads/file/3698582/tor_control-0.1.5.xpi"; + sha256 = "3b529ee8993e1bdb374bb8f1fb926564eb10cd4403c09bc55077a0b72f6ff937"; + meta = with lib; + { + homepage = "https://add0n.com/tor-control.html"; + description = "Brings the anonymity of the Tor network and modifies few settings to protect user privacy"; + license = licenses.mpl20; + mozPermissions = [ + "storage" + "proxy" + "privacy" + "notifications" + "nativeMessaging" + ]; + platforms = platforms.all; + }; + }; "updateswh" = buildFirefoxXpiAddon { pname = "updateswh"; version = "0.6.8"; diff --git a/pkgs/firefox-addons/firefox-addons.json b/pkgs/firefox-addons/firefox-addons.json index 479baf15..56db9318 100644 --- a/pkgs/firefox-addons/firefox-addons.json +++ b/pkgs/firefox-addons/firefox-addons.json @@ -34,5 +34,11 @@ }, { "slug": "rsshub-radar" + }, + { + "slug": "tor-control" + }, + { + "slug": "cookies-txt" } ]