Skip to content

Script no longer working: Reasoning #79

@p1n34pp13

Description

@p1n34pp13

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

  1. Go to instagram.com
  2. Navigate to Messages
  3. Select the person, with whom you want to have chat.
  4. Open the inspect using MacOS – Command + Option + IOR Windows – Control + Shift + I.
  5. Paste the code from https://update.greasyfork.org/scripts/555028/instagram-dm-unsender.user.js#bypass=true
  6. Click on Unsend all DMs
  7. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions