I'm trying to figure out a way to remove an Event Listener using JavaScript without using removeEventListener() because the Event Listener is already present in the website's code when I open it. It's quite frustrating to have to delete multiple items and constantly deal with the popup message asking "Do you want to delete these assets?"
My usual process goes like this:
- I open the page (Event listener already there)
- I start deleting assets (from a form)
- Upon clicking submit, an Event Listener triggers (the one I want to remove)
- The annoying popup message appears asking for confirmation to delete assets
Is there a way to remove this Event Listener automatically from the page, even though I didn't create it?
Here's what the Event Listener looks like:
https://i.sstatic.net/6qttT.png
Thanks in advance for any help!