-
-
Notifications
You must be signed in to change notification settings - Fork 11
Description
How impactful is the issue
This is a critical issue, as script is not working at all, and screen gets stuck with dark background.
Describe the bug
Logs in console
User asked for messages unsending to start; UI interaction will be disabled in the meantime
DefaultStrategy.run()
loadUIPI
UIPI.create
UI create
_Uncaught (in promise) Error: Unable to find messagesWrapperElement_
Explaination
Instagram may have changed its layout. An exception line no. 583 is raised. It says the message wrapper is not found. So I investigated what findMessagesWrapper function is returning. I ran console.log(window.document.querySelector("div[role=row] > div > div > div > div")) and it returned null. Then i checked whether it's able find the div element with role=row at all or not, and unexpectadely it returned null as well. I ran console.log(window.document.querySelector("div[role=row]")).
I do not know whether Instagram has replaced this role with something else or has been removed at all. I didn't investigate prior to when the script was working. I checked the source code on Inspect and found the following role.
link
img
main
navigation
button
presentation
status
progressbar
none
textbox
I was unable to correct the code, and find the correct div element, in which the conversation is.
Userscript version
I am running version 0.6.1 of the userscript.
What does your thread look like
Normal text conversation. (Not relevant, in this case)
How to reproduce the bug
- Go to instagram.com
- Navigate to
Messages - Select the person, with whom you want to have chat.
- Open the inspect using
MacOS – Command + Option + IORWindows – Control + Shift + I. - Paste the code from https://update.greasyfork.org/scripts/555028/instagram-dm-unsender.user.js#bypass=true
- Click on
Unsend all DMs - You'll see error on console.
Logs
console-export-2026-2-2_21-56-7.log
Screenshots
Not relevant
Desktop (please complete the following information):
Not relevant
Additional context
If you want me to debug more, let me know.