diff --git a/modules/home/browsers/firefox/default.nix b/modules/home/browsers/firefox/default.nix index 3f0a88f..02c393f 100644 --- a/modules/home/browsers/firefox/default.nix +++ b/modules/home/browsers/firefox/default.nix @@ -38,25 +38,6 @@ in betterttv seventv dracula-dark-colorscheme - - # ( - # let - # version = "0.7.1"; - # in - # buildFirefoxXpiAddon { - # pname = "twitchnosub"; - # inherit version; - # addonId = "twitchnosub@besuper.com"; - # url = "https://github.com/besuper/TwitchNoSub/releases/download/${version}/TwitchNoSub-firefox.${version}.xpi"; - # sha256 = "sha256-Z/KaWdJy6L/sZXUJlT3nyNnBOf21TxMrQHKxa3j2KD8="; - # meta = { - # homepage = "https://github.com/besuper/TwitchNoSub"; - # description = "An extension to watch sub only VOD on Twitch"; - # license = lib.licenses.gpl3; - # platforms = lib.platforms.all; - # }; - # } - # ) ( let version = "1.3"; diff --git a/packages/twitchnosub/default.nix b/packages/twitchnosub/default.nix index cfdbd71..ceb125d 100644 --- a/packages/twitchnosub/default.nix +++ b/packages/twitchnosub/default.nix @@ -4,13 +4,13 @@ let in stdenvNoCC.mkDerivation (finalAttrs: { pname = "twitchnosub"; - version = "0.8.1"; + version = "0.9"; src = fetchFromGitHub { owner = "besuper"; repo = "TwitchNoSub"; rev = "refs/tags/${finalAttrs.version}"; - hash = "sha256-xlWNUiv06ocRwMsnAAI7V7kDlG25psKmZXeODq07MoM="; + hash = "sha256-NSV86GC+vo50YQupPCRn/xCyysaypuyI0hfNlI2Pj9U="; }; nativeBuildInputs = with pkgs; [ web-ext ]; @@ -24,11 +24,6 @@ stdenvNoCC.mkDerivation (finalAttrs: { runHook postBuild ''; - patches = [ - # See https://github.com/besuper/TwitchNoSub/issues/156#issuecomment-2592337368 - ./worker.patch - ]; - installPhase = '' runHook preInstall diff --git a/packages/twitchnosub/worker.patch b/packages/twitchnosub/worker.patch deleted file mode 100644 index 1f0d5ff..0000000 --- a/packages/twitchnosub/worker.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/src/app.js b/src/app_fixed.js -index 5cdb5b1..dad4210 100644 ---- a/src/app.js -+++ b/src/app_fixed.js -@@ -19,9 +19,14 @@ window.Worker = class Worker extends oldWorker { - super(twitchBlobUrl); - - this.addEventListener("message", (event) => { -- const { data } = event; -- if ((data.id === 1 || isVariantA) && data.type === 1) { -- this.postMessage({ ...data, arg: [data.arg] }); -+ const data = event.data; -+ -+ if ((data.id == 1 || isVariantA) && data.type == 1) { -+ const newData = event.data; -+ -+ newData.arg = [data.arg]; -+ -+ this.postMessage(newData); - } - }); - }