mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-10-07 16:29:37 +02:00
Fix ublock setup
This commit is contained in:
@@ -90,10 +90,9 @@ WORKDIR /etc/linkding
|
|||||||
# Install necessary tools
|
# Install necessary tools
|
||||||
# Download and unzip the latest uBlock Origin Lite release
|
# Download and unzip the latest uBlock Origin Lite release
|
||||||
# Patch manifest to enable annoyances by default
|
# 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 && \
|
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') && \
|
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" && \
|
echo "Downloading $DOWNLOAD_URL" && \
|
||||||
curl -L -o uBOLite.zip $DOWNLOAD_URL && \
|
curl -L -o uBOLite.zip $DOWNLOAD_URL && \
|
||||||
unzip uBOLite.zip -d uBOLite.chromium.mv3 && \
|
unzip uBOLite.zip -d uBOLite.chromium.mv3 && \
|
||||||
|
@@ -88,10 +88,9 @@ WORKDIR /etc/linkding
|
|||||||
# Install necessary tools
|
# Install necessary tools
|
||||||
# Download and unzip the latest uBlock Origin Lite release
|
# Download and unzip the latest uBlock Origin Lite release
|
||||||
# Patch manifest to enable annoyances by default
|
# 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 && \
|
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') && \
|
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" && \
|
echo "Downloading $DOWNLOAD_URL" && \
|
||||||
curl -L -o uBOLite.zip $DOWNLOAD_URL && \
|
curl -L -o uBOLite.zip $DOWNLOAD_URL && \
|
||||||
unzip uBOLite.zip -d uBOLite.chromium.mv3 && \
|
unzip uBOLite.zip -d uBOLite.chromium.mv3 && \
|
||||||
|
@@ -2,7 +2,7 @@ rm -rf uBOLite.chromium.mv3
|
|||||||
|
|
||||||
# Download uBlock Origin Lite
|
# Download uBlock Origin Lite
|
||||||
TAG=$(curl -sL https://api.github.com/repos/uBlockOrigin/uBOL-home/releases/latest | jq -r '.tag_name')
|
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"
|
echo "Downloading $DOWNLOAD_URL"
|
||||||
curl -L -o uBOLite.zip $DOWNLOAD_URL
|
curl -L -o uBOLite.zip $DOWNLOAD_URL
|
||||||
unzip uBOLite.zip -d uBOLite.chromium.mv3
|
unzip uBOLite.zip -d uBOLite.chromium.mv3
|
||||||
|
Reference in New Issue
Block a user