This commit is contained in:
4DBug committed 2026-10-18 00:01:03 -05:00
1 parent ef19a50302
commit 74076952e2
10 files changed
+39 -3

No files matched your search

+33
View File
@@ -5,6 +5,37 @@
};
den.aspects.software.browsers = {
homeManager = { host, ... }: {
# Redirector has no managed storage schema; import once via its settings.
xdg.configFile."redirector/invidious.json".text = builtins.toJSON {
createdBy = "Redirector v3.5.3";
createdAt = "2026-10-17T00:00:00.000Z";
redirects = map (r: {
error = null;
excludePattern = "";
patternDesc = "";
patternType = "R";
processMatches = "noProcessing";
disabled = false;
grouped = false;
appliesTo = [ "main_frame" ];
} // r) [
{
description = "YouTube to Invidious";
exampleUrl = "https://www.youtube.com/watch?v=dQw4w9WgXcQ";
exampleResult = "https://tube.${host.domain}/watch?v=dQw4w9WgXcQ";
includePattern = "^https?://(www\\.|m\\.)?youtube\\.com/watch\\?(.*)$";
redirectUrl = "https://tube.${host.domain}/watch?$2";
}
{
description = "youtu.be to Invidious";
exampleUrl = "https://youtu.be/dQw4w9WgXcQ";
exampleResult = "https://tube.${host.domain}/watch?v=dQw4w9WgXcQ&";
includePattern = "^https?://youtu\\.be/([^?&]+)\\??(.*)$";
redirectUrl = "https://tube.${host.domain}/watch?v=$1&$2";
}
];
};
programs.librewolf = {
enable = true;
@@ -208,6 +239,8 @@
"{a6c4a591-f1b2-4f03-b3ff-767e5bedf4e7}" # user-agent-string-switcher
"{762f9885-5a13-4abd-9c77-433dcd38b8fd}" # return-youtube-dislikes
"redirector@einaregilsson.com" # redirector
]);
};
};