rewrite iframe remove snippet
add xhr resend function