zen: properly setup bypass paywall extention
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -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/"
|
||||
|
||||
Reference in New Issue
Block a user