feat(firefox): switch to ffz

This commit is contained in:
matt1432 2023-12-13 16:53:40 -05:00
parent ae8baa6f1e
commit 5143bb06c8
6 changed files with 22 additions and 12 deletions

Binary file not shown.

View file

@ -40,17 +40,17 @@ in
inherit buildFirefoxXpiAddon;
seventv = let
version = "v3.0.10.1000";
version = "4.0";
in
buildFirefoxXpiAddon {
pname = "seventv";
pname = "frankerfacez";
inherit version;
addonId = "moz-addon@7tv.app";
url = "https://extension.7tv.gg/${version}/ext.xpi";
sha256 = "sha256-dZyjFayvnLebSZHjMTTQFjcsxxpmc1aL5q17mLF3kG8=";
addonId = "frankerfacez@frankerfacez.com";
url = "https://cdn.frankerfacez.com/script/frankerfacez-${version}-an+fx.xpi";
sha256 = "sha256-U/yAra2c+RlGSaQtHfBz9XYsoDaJ67gmPJBsFrpqoE8=";
meta = with lib; {
homepage = "https://7tv.app/";
description = "The Web Extension for 7TV, bringing new features, emotes, vanity and performance to Twitch, Kick & YouTube";
homepage = "https://www.frankerfacez.com/";
description = "The Twitch Enhancement Suite. Get custom emotes and tons of new features you'll never want to go without.";
license = licenses.asl20;
platforms = platforms.all;
};

File diff suppressed because one or more lines are too long

View file

@ -79,10 +79,10 @@
};
"ttv-lol-pro" = buildFirefoxXpiAddon {
pname = "ttv-lol-pro";
version = "2.2.1";
version = "2.2.2";
addonId = "{76ef94a4-e3d0-4c6f-961a-d38a429a332b}";
url = "https://addons.mozilla.org/firefox/downloads/file/4179399/ttv_lol_pro-2.2.1.xpi";
sha256 = "83d012878021fb5fe25bee1101a7a760974ae9e2949b80fd99b73d3da48b1f99";
url = "https://addons.mozilla.org/firefox/downloads/file/4207077/ttv_lol_pro-2.2.2.xpi";
sha256 = "6cfb2b8cc59f2ab8f1d5dfcb98365f181eee31f5a529bf9ba5ab09dae96be12a";
meta = with lib; {
homepage = "https://github.com/younesaassila/ttv-lol-pro";
description = "TTV LOL PRO removes most livestream ads from Twitch.";

View file

@ -1 +0,0 @@
{"timestamp":1697914605981,"settings":[{"key":"chat.alternating_background","type":"boolean","value":true,"timestamp":1697329498914},{"key":"chat.deleted_messages","type":"number","value":2,"timestamp":1697329507626},{"key":"chat.mod_messages","type":"boolean","value":true,"timestamp":1697329482669},{"key":"chat.timestamp_with_seconds","type":"boolean","value":false,"timestamp":1697329513608},{"key":"general.autoclaim.channel_points","type":"boolean","value":true,"timestamp":1697329532664},{"key":"highlights.basic.mention_title_flash","type":"boolean","value":true,"timestamp":1697329354766},{"key":"highlights.basic.self","type":"boolean","value":true,"timestamp":1697329558832},{"key":"highlights.custom","type":"object","value":[],"timestamp":1697329354321,"constructorName":"Map"},{"key":"layout.hide_bits_buttons","type":"boolean","value":true,"timestamp":1697329436637},{"key":"layout.hide_channel_leaderboard","type":"boolean","value":true,"timestamp":1697329390214},{"key":"layout.hide_community_highlights","type":"boolean","value":false,"timestamp":1697329413217},{"key":"layout.hide_hype_chat_button","type":"boolean","value":true,"timestamp":1697329442683},{"key":"layout.hide_pinned_hype_chats","type":"boolean","value":true,"timestamp":1697329417875},{"key":"layout.hide_prime_offers","type":"boolean","value":true,"timestamp":1697329446012},{"key":"layout.hide_react_buttons","type":"boolean","value":true,"timestamp":1697329433561},{"key":"layout.hide_recommended_channels","type":"boolean","value":true,"timestamp":1697329428437},{"key":"layout.hide_viewers_also_watch","type":"boolean","value":true,"timestamp":1697329425642},{"key":"player.action_onclick","type":"number","value":2,"timestamp":1697329383233},{"key":"player.skip_content_restriction","type":"boolean","value":true,"timestamp":1697329372106},{"key":"player.video_stats","type":"boolean","value":true,"timestamp":1697329375300}]}

View file

@ -17,7 +17,15 @@ parseNurl() {
# https://gitlab.com/mishakmak/pam-fprint-grosshack
# https://github.com/tio/input-emulator
# https://extension.7tv.gg/manifest.moz.json
updateFFZ() {
FILE="/home/matt/.nix/home/firefox/addons/default.nix"
URL="https://cdn.frankerfacez.com/script/frankerfacez-4.0-an+fx.xpi"
HASH=$(nix store prefetch-file --refresh --json \
--hash-type sha256 $URL | jq -r .hash)
sed -i "s,sha256 = .*,sha256 = \"$HASH\";," "$FILE"
}
updateFirefoxAddons() {
echo "Updating firefox addons using mozilla-addons-to-nix"
@ -56,12 +64,14 @@ updateGSR() {
}
doAll() {
updateFFZ
updateFirefoxAddons
updateGSR
}
[[ "$1" == "-a" || "$1" == "--all" ]] && doAll
[[ "$1" == "-f" || "$1" == "--firefox" ]] && updateFirefoxAddons
[[ "$1" == "-ffz" || "$1" == "--frankerfacez" ]] && updateFFZ
[[ "$1" == "-gsr" || "$1" == "--gpu-screen-recorder" ]] && updateGSR
alejandra /home/matt/.nix