Update README.md
This commit is contained in:
parent
d89980417c
commit
008362a03b
25
README.md
25
README.md
@ -8,10 +8,29 @@ Script that redacts (erases) every message in a room.
|
|||||||
|
|
||||||
#### Get your access token
|
#### Get your access token
|
||||||
|
|
||||||
On [Cinny](https://app.cinny.in) go to Firefox's Inspect tool, to the Storage tab, and copy your `cinny_access_token`.
|
On [Cinny](https://app.cinny.in), for example, go to Firefox's Inspect tool, to the Storage tab, and copy your `cinny_access_token`.
|
||||||
Other apps may have a similar key with this value.
|
Other clients may have a similar key with this value, which is different for each session and is valid for as long as you don't log out.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Open the `redact_all_messages` script with your favorite text editor and set the value for `homeserver` with the domain of the matrix instance you're logged in, and the `access_token` with the value you just extracted from the browser.
|
Open the `redact_all_messages.py` script with your favorite text editor and set the value for `homeserver` with the domain of the matrix instance you're logged in, and the `access_token` with the value you just extracted from the browser.
|
||||||
|
|
||||||
|
|
||||||
|
#### Get the Matrix room id
|
||||||
|
|
||||||
|
On Cinny you can do this by clicking on the room's name.
|
||||||
|
|
||||||
|
The id will be right below the title of the room, and it looks like this:
|
||||||
|
`!cdPNSVToruMtXqGznY:domain.tld`
|
||||||
|
|
||||||
|
#### Run the script
|
||||||
|
|
||||||
|
```
|
||||||
|
python redact_all_messages.py '!cdPNSVToruMtXqGznY:domain.tld'
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Note
|
||||||
|
|
||||||
|
It will redact (erasing) each of your contacts' comments too, so long as you got permissions over them, which is the case of every private message room.
|
Loading…
Reference in New Issue
Block a user