From 9cb28e037d8424bcfbd5bfcb01d9eea4b5cb82e7 Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 11 Sep 2023 22:30:28 +0000 Subject: [PATCH] firefox: sponsorblock: fix to really not show popup on first-run --- pkgs/additional/firefox-extensions/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/additional/firefox-extensions/default.nix b/pkgs/additional/firefox-extensions/default.nix index 00bcd1a4..6ebba2c0 100644 --- a/pkgs/additional/firefox-extensions/default.nix +++ b/pkgs/additional/firefox-extensions/default.nix @@ -110,11 +110,14 @@ in lib.makeScope newScope (self: with self; { sponsorblock = (wrapAddon unwrapped.sponsorblock {}) .withPostPatch '' # patch sponsorblock to not show the help tab on first launch. + # # XXX: i tried to build sponsorblock from source and patch this *before* it gets webpack'd, # but web shit is absolutely cursed and building from source requires a fucking PhD # (if you have one, feel free to share your nix package) + # + # NB: in source this is `if (!userID)...`, but the build process mangles the names substituteInPlace js/background.js \ - --replace 'default.config.userId)' 'default.config.userID && false)' + --replace 'default.config.userID)' 'default.config.userID && false)' ''; ublacklist = wrapAddon unwrapped.ublacklist {};