various patches i've created or modified for the element client
Go to file
nameless 30a1fabbba okay buddy 2024-04-05 01:55:34 -04:00
images i'm actually fucking retarded 2024-04-04 18:07:22 -04:00
LICENSE first commit yerrrrr 2024-04-04 02:18:33 -04:00
README.md okay buddy 2024-04-05 01:55:34 -04:00
greentext.patch first commit yerrrrr 2024-04-04 02:18:33 -04:00

README.md

A collection of various patches I've created or modified for the Element client. For now there's only a greentext patch.

Greentext command

Greentext demo

Instructions

  1. git clone https://github.com/element-hq/element-web.git
  2. cd element-web
  3. yarn install
  4. git clone https://git.supernets.org/nameless/element-web-patches
  5. patch node_modules/matrix-react-sdk/src/SlashCommands.tsx element-web-patches/greentext.patch
  6. yarn dist

Nix

You can automatically apply this patch to Element Desktop on Nix with the use of an overlay.

self: super:
{
  element-web = super.element-web.overrideAttrs (oldAttrs: rec {
    greentext = super.fetchpatch {
      url = "https://git.supernets.org/nameless/element-web-patches/raw/branch/main/greentext.patch";
      sha256 = ""; # Replace this with the hash provided by Nix.
    };
    configurePhase = oldAttrs.configurePhase + ''
      patch node_modules/matrix-react-sdk/src/SlashCommands.tsx ${greentext}
    '';
  });
}

Credits to Ren Tatsumoto for the original greentext patch.