From 128e1afbce0e15a1315fb1d61b69a865aedc7297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Sun, 28 Sep 2025 10:38:56 +0200 Subject: [PATCH] Fix ublock setup --- docker/alpine.Dockerfile | 3 +-- docker/default.Dockerfile | 3 +-- scripts/setup-ublock.sh | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docker/alpine.Dockerfile b/docker/alpine.Dockerfile index a3b3e89..f424469 100644 --- a/docker/alpine.Dockerfile +++ b/docker/alpine.Dockerfile @@ -90,10 +90,9 @@ WORKDIR /etc/linkding # Install necessary tools # Download and unzip the latest uBlock Origin Lite release # Patch manifest to enable annoyances by default -# Patch ruleset-manager.js to use rulesets enabled in manifest by default RUN apk add --no-cache curl jq unzip && \ TAG=$(curl -sL https://api.github.com/repos/uBlockOrigin/uBOL-home/releases/latest | jq -r '.tag_name') && \ - DOWNLOAD_URL=https://github.com/uBlockOrigin/uBOL-home/releases/download/$TAG/$TAG.chromium.mv3.zip && \ + DOWNLOAD_URL=https://github.com/uBlockOrigin/uBOL-home/releases/download/$TAG/uBOLite_$TAG.chromium.zip && \ echo "Downloading $DOWNLOAD_URL" && \ curl -L -o uBOLite.zip $DOWNLOAD_URL && \ unzip uBOLite.zip -d uBOLite.chromium.mv3 && \ diff --git a/docker/default.Dockerfile b/docker/default.Dockerfile index 05aebb2..bbd9ef7 100644 --- a/docker/default.Dockerfile +++ b/docker/default.Dockerfile @@ -88,10 +88,9 @@ WORKDIR /etc/linkding # Install necessary tools # Download and unzip the latest uBlock Origin Lite release # Patch manifest to enable annoyances by default -# Patch ruleset-manager.js to use rulesets enabled in manifest by default RUN apk add --no-cache curl jq unzip && \ TAG=$(curl -sL https://api.github.com/repos/uBlockOrigin/uBOL-home/releases/latest | jq -r '.tag_name') && \ - DOWNLOAD_URL=https://github.com/uBlockOrigin/uBOL-home/releases/download/$TAG/$TAG.chromium.mv3.zip && \ + DOWNLOAD_URL=https://github.com/uBlockOrigin/uBOL-home/releases/download/$TAG/uBOLite_$TAG.chromium.zip && \ echo "Downloading $DOWNLOAD_URL" && \ curl -L -o uBOLite.zip $DOWNLOAD_URL && \ unzip uBOLite.zip -d uBOLite.chromium.mv3 && \ diff --git a/scripts/setup-ublock.sh b/scripts/setup-ublock.sh index b4a3550..4571403 100755 --- a/scripts/setup-ublock.sh +++ b/scripts/setup-ublock.sh @@ -2,7 +2,7 @@ rm -rf uBOLite.chromium.mv3 # Download uBlock Origin Lite TAG=$(curl -sL https://api.github.com/repos/uBlockOrigin/uBOL-home/releases/latest | jq -r '.tag_name') -DOWNLOAD_URL=https://github.com/uBlockOrigin/uBOL-home/releases/download/$TAG/$TAG.chromium.mv3.zip +DOWNLOAD_URL=https://github.com/uBlockOrigin/uBOL-home/releases/download/$TAG/uBOLite_$TAG.chromium.zip echo "Downloading $DOWNLOAD_URL" curl -L -o uBOLite.zip $DOWNLOAD_URL unzip uBOLite.zip -d uBOLite.chromium.mv3