Redact all your Matrix events in a room. Now with encrypted room support.
Go to file
video-prize-ranch 42372135df Merge pull request 'Fix: functionality in encrypted rooms' (#1) from kayos/matrix-redact:main into main
Reviewed-on: https://codeberg.org/video-prize-ranch/matrix-redact/pulls/1
2022-02-26 17:50:14 +01:00
.gitignore Fix: functionality in encrypted rooms 2022-02-26 04:09:29 -08:00
LICENSE.md first commit 2022-01-22 13:01:53 -05:00
README.md first commit 2022-01-22 13:01:53 -05:00
config.example.json first commit 2022-01-22 13:01:53 -05:00
index.js Fix: functionality in encrypted rooms 2022-02-26 04:09:29 -08:00
package.json first commit 2022-01-22 13:01:53 -05:00
pnpm-lock.yaml first commit 2022-01-22 13:01:53 -05:00

matrix-redact

Redact all your Matrix events in a room.

⚠️ This will put a lot of load on your homeserver, it's probably not be a good idea to run this on large rooms or on public homeservers.

Currently only redacts messages and images but other event types can be added easily.

Usage

Install node_modules

[npm/pnpm/yarn] install

Edit config.json with your credentials.

cp config.example.json config.json
[your favorite text editor] config.json

You can find the base URL by going to https://your-homeserver.tld/.well-known/matrix/client and the access token can be found in Settings > Help & About on Element.

node . -r "INTERNAL_ROOM_ID"

The internal room ID can be found by clicking on the room name then Settings > Advanced