feat(firefox): add ttv-lol-pro addon

This commit is contained in:
matt1432 2023-10-20 00:35:03 -04:00
parent 29cd2d4988
commit 95ec4f4bdc
4 changed files with 30 additions and 1 deletions

View file

@ -8,6 +8,9 @@
{ {
"slug": "checkmarks-web-ext" "slug": "checkmarks-web-ext"
}, },
{
"slug": "ttv-lol-pro"
},
{ {
"slug": "opera-gx-witchcraft-purple" "slug": "opera-gx-witchcraft-purple"
} }

View file

@ -77,4 +77,29 @@
platforms = platforms.all; platforms = platforms.all;
}; };
}; };
"ttv-lol-pro" = buildFirefoxXpiAddon {
pname = "ttv-lol-pro";
version = "2.2.1";
addonId = "{76ef94a4-e3d0-4c6f-961a-d38a429a332b}";
url = "https://addons.mozilla.org/firefox/downloads/file/4179399/ttv_lol_pro-2.2.1.xpi";
sha256 = "83d012878021fb5fe25bee1101a7a760974ae9e2949b80fd99b73d3da48b1f99";
meta = with lib;
{
homepage = "https://github.com/younesaassila/ttv-lol-pro";
description = "TTV LOL PRO removes most livestream ads from Twitch.";
license = licenses.gpl3;
mozPermissions = [
"proxy"
"storage"
"webRequest"
"webRequestBlocking"
"https://*.ttvnw.net/*"
"https://*.twitch.tv/*"
"https://perfprod.com/ttvlolpro/telemetry"
"https://www.twitch.tv/*"
"https://m.twitch.tv/*"
];
platforms = platforms.all;
};
};
} }

View file

@ -162,6 +162,7 @@ in
sound-volume sound-volume
google-container google-container
checkmarks-web-ext checkmarks-web-ext
ttv-lol-pro
opera-gx-witchcraft-purple opera-gx-witchcraft-purple
]); ]);
}; };

View file

@ -22,7 +22,7 @@ parseNurl "https://github.com/lukas-reineke/indent-blankline.nvim"
updateFirefoxAddons() { updateFirefoxAddons() {
echo "Updating firefox addons using mozilla-addons-to-nix" echo "Updating firefox addons using mozilla-addons-to-nix"
(cd /home/matt/.nix/nixos/home/firefox/addons || return; (cd /home/matt/.nix/modules/firefox/addons || return;
file=generated-firefox-addons.nix file=generated-firefox-addons.nix
if [[ -f $file ]]; then if [[ -f $file ]]; then