I am writing a script for my client that already has some encrypted JavaScript. Somewhere in encrypted JavaScript there is .remove()
event that trigger with a particular button. I found a script jQuery - Trigger event when an element is removed from the DOM that detect the .remove()
event. After that i tried to block that event with this:
$('#fileElem').on('destroyed', function(){
$('#fileElem').die('remove');
$('input[name="done_upload"]').trigger('click');
});
But i got Uncaught TypeError: Object [object Object] has no method 'die'
might be the destroyed
event trigger after .remove()
action, I am not sure. And as i used to auto trigger the button with $('input[name="done_upload"]').trigger('click');
not working because i got error before trigger event.
Can anyone help me to stop removing DOM element?