From bf281d16ce6b48fa98e2f1bf57adf093f6a77570 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 12 Sep 2024 14:33:36 +0800 Subject: [PATCH] pkgs/firefox-addons: add Microsoft Container and Extended Color Management --- pkgs/firefox-addons/default.nix | 42 +++++++++++++++++++++++++ pkgs/firefox-addons/firefox-addons.json | 13 ++++---- 2 files changed, 48 insertions(+), 7 deletions(-) diff --git a/pkgs/firefox-addons/default.nix b/pkgs/firefox-addons/default.nix index 7c5a5650..4e7264d5 100644 --- a/pkgs/firefox-addons/default.nix +++ b/pkgs/firefox-addons/default.nix @@ -1,5 +1,24 @@ { buildFirefoxXpiAddon, fetchurl, lib, stdenv }: { + "extended-color-management" = buildFirefoxXpiAddon { + pname = "extended-color-management"; + version = "1.1.1"; + addonId = "{816dd215-0e91-4621-9d89-3bac78798e6f}"; + url = "https://addons.mozilla.org/firefox/downloads/file/3966904/extended_color_management-1.1.1.xpi"; + sha256 = "8b09d9fb312635c428571bd74beacf67e426089ebc812c7f39e9c3b4dad05a0b"; + meta = with lib; + { + description = "Ever wish that Firefox didn't use color management when viewing images or video? Turn it off easily with this add-on."; + license = licenses.mpl20; + mozPermissions = [ + "browserSettings" + "notifications" + "storage" + "" + ]; + platforms = platforms.all; + }; + }; "get-rss-feed-url" = buildFirefoxXpiAddon { pname = "get-rss-feed-url"; version = "2.2"; @@ -44,6 +63,29 @@ platforms = platforms.all; }; }; + "microsoft-container" = buildFirefoxXpiAddon { + pname = "microsoft-container"; + version = "1.0.4"; + addonId = "@contain-microsoft"; + url = "https://addons.mozilla.org/firefox/downloads/file/3711415/microsoft_container-1.0.4.xpi"; + sha256 = "8780c9edcfa77a9f3eaa7da228a351400c42a884fec732cafc316e07f55018d3"; + meta = with lib; + { + homepage = "https://github.com/kouassi-goli/contain-microsoft"; + description = "This add-on is an unofficial fork of Mozilla's Facebook Container designed for Microsoft. \n Microsoft Container isolates your Microsoft activity from the rest of your web activity and prevent Microsoft from tracking you outside of the its website."; + license = licenses.mpl20; + mozPermissions = [ + "" + "contextualIdentities" + "cookies" + "management" + "tabs" + "webRequestBlocking" + "webRequest" + ]; + platforms = platforms.all; + }; + }; "regretsreporter" = buildFirefoxXpiAddon { pname = "regretsreporter"; version = "2.1.2"; diff --git a/pkgs/firefox-addons/firefox-addons.json b/pkgs/firefox-addons/firefox-addons.json index 022c446f..52d2db8b 100644 --- a/pkgs/firefox-addons/firefox-addons.json +++ b/pkgs/firefox-addons/firefox-addons.json @@ -2,31 +2,30 @@ { "slug": "updateswh" }, - { "slug": "zhongwen" }, - { "slug": "get-rss-feed-url" }, - { "slug": "regretsreporter" }, - + { + "slug": "extended-color-management" + }, { "slug": "simple-translate" }, - { "slug": "tineye-reverse-image-search" }, - { "slug": "google-container" }, - + { + "slug": "microsoft-container" + }, { "slug": "sourcegraph-for-firefox" }