How to hide/skip 2nd step a lead (email) banner

Please place HTML code element in the 2nd step of banner, and then use this HTML code:

document.addEventListener("afterShow", function() {

If this code is used, then after user fills out form, the 2nd step of banner will automatically be hidden (banner will close itself).