zen: properly setup bypass paywall extention
All checks were successful
Build and Deploy / mreow (push) Successful in 1m34s
Build and Deploy / yarn (push) Successful in 1m5s
Build and Deploy / muffin (push) Successful in 1m5s

This commit is contained in:
2026-05-12 09:38:47 -04:00
parent 51a6d53582
commit 9417716e68
2 changed files with 23 additions and 3 deletions

View File

@@ -37,10 +37,24 @@ let
platforms = platforms.all;
};
};
bypass-paywalls-clean = buildFirefoxXpiAddon {
pname = "bypass-paywalls-clean";
version = "4.3.6.5";
addonId = "magnolia@12.34";
url = "https://gitflic.ru/project/magnolia1234/bpc_uploads/blob/raw?file=bypass_paywalls_clean-latest.xpi";
sha256 = "sha256-paBt/jH2kOWwjEozVjGh8ruNhFJ0gPvy2KFbEaBtv/s=";
meta = with lib; {
homepage = "https://gitflic.ru/project/magnolia1234/bypass-paywalls-firefox-clean";
description = "Bypass Paywalls of news sites";
license = licenses.mit;
platforms = platforms.all;
};
};
ublockSettings = import ./ublock.nix { inherit lib; };
darkReaderSettings = import ./dark-reader.nix { inherit lib; };
redirectorSettings = import ./redirector.nix { inherit lib; };
tampermonkeySettings = import ./tampermonkey.nix { inherit lib; };
in
{
programs.zen-browser = {
@@ -71,12 +85,21 @@ in
++ [
hacker-smacker
consumer-rights-wiki
bypass-paywalls-clean
];
settings = {
"uBlock0@raymondhill.net" = ublockSettings;
"addon@darkreader.org" = darkReaderSettings;
"redirector@einaregilsson.com" = redirectorSettings;
"magnolia@12.34" = {
force = true;
settings = {
optIn = true;
optInFetch = true;
optInUpdate = false;
};
};
};
};

View File

@@ -9,14 +9,12 @@
externalLists = builtins.concatStringsSep "\n" [
"https://abp.oisd.nl/"
"https://filters.adtidy.org/extension/ublock/filters/3.txt"
"https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=bpc-paywall-filter.txt"
"https://raw.githubusercontent.com/DetachHead/ublock-filters/refs/heads/master/list.txt"
"https://raw.githubusercontent.com/laylavish/uBlockOrigin-HUGE-AI-Blocklist/main/list.txt"
];
importedLists = [
"https://abp.oisd.nl/"
"https://filters.adtidy.org/extension/ublock/filters/3.txt"
"https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=bpc-paywall-filter.txt"
"https://raw.githubusercontent.com/DetachHead/ublock-filters/refs/heads/master/list.txt"
"https://raw.githubusercontent.com/laylavish/uBlockOrigin-HUGE-AI-Blocklist/main/list.txt"
];
@@ -59,7 +57,6 @@
"ublock-annoyances"
"SWE-1"
"https://filters.adtidy.org/extension/ublock/filters/3.txt"
"https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=bpc-paywall-filter.txt"
"https://raw.githubusercontent.com/DetachHead/ublock-filters/refs/heads/master/list.txt"
"https://raw.githubusercontent.com/laylavish/uBlockOrigin-HUGE-AI-Blocklist/main/list.txt"
"https://abp.oisd.nl/"