Skip to content

Commit cb0667e

Browse files
Merge pull request #27 from thoughtsunificator/develop
Fix
2 parents b17009d + 3e462dd commit cb0667e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1754
-975
lines changed

.env.sample.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
],
3131
"rules": {
3232
"require-await": "warn",
33+
"require-jsdoc": "warn",
34+
"valid-jsdoc": ["warn", { "requireParamDescription": false, "requireReturn": false, "requireReturnDescription": false }],
3335
"comma-style": [1, "last"],
3436
"curly": [1, "multi-line"],
3537
"eol-last": [1, "always"],

README.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# instagram-dm-unsender
1+
# instagram-dm-unsender (idmu)
22

33
As of 2023 [instagram.com](https://www.instagram.com) does not allow batch unsending of messages which is why this project came to be.
44

@@ -19,9 +19,19 @@ Deleting a thread will only delete messages on your end, the other party will st
1919

2020
Unsending a thread on the other hand will delete messages on both ends, the other party will no longer be able to read your messages.
2121

22-
## How does it work?
22+
## How does it work / How can I use it?
2323

24-
This script is meant to be run on the page that lists the message threads.
24+
This script is meant to be run on the page that lists the message threads.
25+
26+
** The UI will only appear once you select a message thread ** :
27+
28+
![UI Preview](preview.png)
29+
30+
From here three buttons are available :
31+
32+
- Unsend all DMs - Start the unsending workflow
33+
- Batch size - Change the number of page to load between unsending
34+
- Load all DMs - Load all your thread messages
2535

2636
The workflow works as follow:
2737
- Create a list of all messages by querying the DOM with an early messages detection strategy (we test the raw outputs of our ``find-messages-strategy`` against parts of the workflow).
@@ -64,15 +74,19 @@ Finally, install the userscript from OpenUserJS :
6474

6575
I recommend using [Violentmonkey](https://violentmonkey.github.io/) or similar and enable userscript autoreloading as explained in here https://violentmonkey.github.io/posts/how-to-edit-scripts-with-your-favorite-editor/
6676

67-
Install all dependencies:
77+
Install dependencies:
6878
- ``npm install``
6979

70-
Start rollup with the watch flag:
80+
To both serve and build with autoreloading:
7181
- ``npm start``
7282

83+
> This will also start an HTTP server and allow autoreloading of the userscript as changes are made.
84+
7385
You can also do a one-time build with:
7486
- ``npm run build``
7587

88+
> The script will build to ``dist/idmu.user.js`` by default.
89+
7690
## This might not work
7791

7892
Instagram web app is serving different UIs probably based on the user location. [Yours might not be supported](https://github.com/thoughtsunificator/instagram-dm-unsender/issues/1)

data/config.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)