diff --git a/subflakes/powercord/flake.nix b/subflakes/powercord/flake.nix index b9b60af..6e2eb36 100644 --- a/subflakes/powercord/flake.nix +++ b/subflakes/powercord/flake.nix @@ -95,6 +95,14 @@ defaultPackage = packages.powercord; packages = with channels.nixpkgs; { powercord = (discord-plugged.override { + patches = (map patch [ + "remove-heygirl" + "remove-lmgtfy" + "remove-mock" + "remove-spotify" + "remove-updater" + ]); + plugins = with inputs; [ discord-Custom-Volume-Range discord-In-app-notifs diff --git a/subflakes/powercord/patches/remove-heygirl.patch b/subflakes/powercord/patches/remove-heygirl.patch new file mode 100644 index 0000000..62da8a0 --- /dev/null +++ b/subflakes/powercord/patches/remove-heygirl.patch @@ -0,0 +1,68 @@ +diff --git a/src/Powercord/plugins/pc-heygirl/index.js b/src/Powercord/plugins/pc-heygirl/index.js +deleted file mode 100644 +index bd97579..0000000 +--- a/src/Powercord/plugins/pc-heygirl/index.js ++++ /dev/null +@@ -1,49 +0,0 @@ +-// idea based on http://heygirl.io/ (+used their images) +- +-const { Plugin } = require('powercord/entities'); +- +-module.exports = class HeyGirl extends Plugin { +- constructor () { +- super(); +- +- this.URLs = [].concat( +- Array(3).fill('jpg'), +- Array(2).fill('gif'), +- Array(1).fill('png'), +- Array(4).fill('gif'), +- Array(3).fill('jpg'), +- Array(1).fill('png') +- ).map((format, id) => ( +- `http://heygirl.io/img/gosling-square-${id + 1}.${format}` +- )); +- } +- +- startPlugin () { +- powercord.api.commands.registerCommand({ +- command: 'heygirl', +- description: 'Replaces every image with a random image of Ryan Gosling', +- usage: '{c}', +- executor: this.heygirl.bind(this) +- }); +- } +- +- pluginWillUnload () { +- powercord.api.commands.unregisterCommand('heygirl'); +- } +- +- getRandomURL () { +- return this.URLs[Math.floor(Math.random() * this.URLs.length)]; +- } +- +- heygirl () { +- document.querySelectorAll('[style*="background-image"]') +- .forEach(({ style }) => ( +- style.backgroundImage = `url("${this.getRandomURL()}")` +- )); +- +- document.querySelectorAll('img') +- .forEach(image => ( +- image.src = this.getRandomURL() +- )); +- } +-}; +diff --git a/src/Powercord/plugins/pc-heygirl/manifest.json b/src/Powercord/plugins/pc-heygirl/manifest.json +deleted file mode 100644 +index 084c039..0000000 +--- a/src/Powercord/plugins/pc-heygirl/manifest.json ++++ /dev/null +@@ -1,7 +0,0 @@ +-{ +- "name": "Heygirl", +- "version": "1.0.0", +- "description": "heygirl", +- "author": "Powercord Team", +- "license": "MIT" +-} diff --git a/subflakes/powercord/patches/remove-lmgtfy.patch b/subflakes/powercord/patches/remove-lmgtfy.patch new file mode 100644 index 0000000..044ae5d --- /dev/null +++ b/subflakes/powercord/patches/remove-lmgtfy.patch @@ -0,0 +1,189 @@ +diff --git a/src/Powercord/plugins/pc-lmgtfy/Settings.jsx b/src/Powercord/plugins/pc-lmgtfy/Settings.jsx +deleted file mode 100644 +index bd26ff3..0000000 +--- a/src/Powercord/plugins/pc-lmgtfy/Settings.jsx ++++ /dev/null +@@ -1,21 +0,0 @@ +-const { React } = require('powercord/webpack'); +-const { SwitchItem } = require('powercord/components/settings'); +- +-module.exports = ({ getSetting, toggleSetting }) => ( +-
Where do you want to save this very nice tune?
+-