Skip to content

Commit

Permalink
adblock stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerg-L committed Aug 11, 2024
1 parent 4f16daf commit c34289b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
22 changes: 7 additions & 15 deletions pkgs/extensions.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{ sources, lib }:

let
# EXTENSIONS ----------------------------------------------------------------
savePlaylists = {
src = "${sources.dakshExtensions}/Extensions";
name = "savePlaylists.js";
Expand Down Expand Up @@ -129,23 +127,13 @@ let
src = sources.powerBarSrc;
name = "power-bar.js";
};
# TODO: add user.css additions as part of extensions, for snippets
# powerBar can by styled with the following CSS:
# #power-bar-container {
# --power-bar-background-color: #333333;
# --power-bar-main-text-color: #ffffff;
# --power-bar-subtext-color: #b3b3b3;
# --power-bar-active-background-color: #1db954;
# --power-bar-active-text-color: #121212;
# --power-bar-border-color: #000000;
# }

groupSession = {
src = "${sources.groupSessionSrc}/src";
name = "group-session.js";
};

charliesAdblock = {
adblockify = {
src = "${sources.rxriSrc}/adblock";
name = "adblock.js";
};
Expand Down Expand Up @@ -201,7 +189,10 @@ let
}
// lib.optionalAttrs (alias != ext.name) { ${sanitizeName alias} = ext; };
in
(lib.listToAttrs (
{
inherit adblockify;
}
// (lib.listToAttrs (
map
(x: {
name = sanitizeName x;
Expand Down Expand Up @@ -253,7 +244,7 @@ in
betterGenres
lastfm
hidePodcasts
charliesAdblock # adblock.js
adblockify
savePlaylists
autoSkip
fullScreen
Expand All @@ -265,6 +256,7 @@ in

)
# aliases for weirdly named extension files
// (mkExtAlias "adblock" adblockify)
// (mkExtAlias "history.js" history)
// (mkExtAlias "volumeProfiles.js" volumeProfiles)
// (mkExtAlias "copyToClipboard.js" copyToClipboard)
Expand Down
2 changes: 1 addition & 1 deletion pkgs/npins/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -461,4 +461,4 @@
}
},
"version": 3
}
}

0 comments on commit c34289b

Please sign in to comment.