KOKINIO - MANAGER
Edit File: custom_config_mercadopago.min.js
window.addEventListener("load",function(){document.querySelector(".wc-admin-breadcrumb").style.display="none",document.querySelector(".mp-header-logo").style.display="none",document.querySelector("#_wpnonce").parentElement.style.display="none";var e=document.querySelectorAll("h2");void 0!==e[4]&&(e[4].style.display="none");for(var o=document.querySelectorAll("p.description"),t=0;t<o.length;t++)o[t].style.width="420px";for(var c=document.querySelectorAll("th.titledesc"),l=0;l<c.length;l++)c[l].id="mp_field_text",c[l]&&c[l].children[0]&&c[l].children[0].children[0]&&(c[l].children[0].children[0].style.position="relative",c[l].children[0].children[0].style.fontSize="22px");for(var n=document.querySelectorAll(".form-table"),d=0;d<n.length;d++)n[d].id="mp_table_"+d;document.querySelector(".hidden-field-mp-title").setAttribute("type","hidden"),document.querySelector(".hidden-field-mp-desc").setAttribute("type","hidden");e=document.querySelectorAll("#mp_table_0");e[0].children[0].children[0].style.display="none",e[0].children[0].children[1].style.display="none";var s,m,r,a,i,p,u,e=document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_btn_save");null===document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_homolog_title")&&null===document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_credential_description_prod")||document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_credential_description_prod").nextElementSibling.append(e.cloneNode(!0)),null===document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_homolog_title")&&null===document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_custom_options_title")||(document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_advanced_settings").nextElementSibling.append(e.cloneNode(!0)),document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_custom_options_title").nextElementSibling.append(e.cloneNode(!0)),document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_payments_subtitle").nextElementSibling.append(e.cloneNode(!0)),document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_payments_advanced_description").nextElementSibling.append(e.cloneNode(!0)),y=document.querySelector("#woocommerce_woo-mercado-pago-custom_checkout_advanced_settings"),(s=y.nextElementSibling).style.display="none",y.style.cursor="pointer",y.innerHTML+='<span class="mp-btn-collapsible" id="header_plus" style="display:block">+</span> <span class="mp-btn-collapsible" id="header_less" style="display:none">-</span>',m=document.querySelector("#header_plus"),r=document.querySelector("#header_less"),y.onclick=function(){"none"===s.style.display?(s.style.display="block",r.style.display="block",m.style.display="none"):(s.style.display="none",r.style.display="none",m.style.display="block")},document.querySelector("#woocommerce_woo-mercado-pago-custom_checkout_payments_advanced_description").nextElementSibling.style.display="none",y=document.querySelector("#woocommerce_woo-mercado-pago-custom_checkout_custom_payments_advanced_title"),a=document.querySelector("#woocommerce_woo-mercado-pago-custom_checkout_payments_advanced_description").nextElementSibling,i=document.querySelector("#woocommerce_woo-mercado-pago-custom_checkout_payments_advanced_description"),a.style.display="none",i.style.display="none",y.style.cursor="pointer",y.innerHTML+='<span class="mp-btn-collapsible" id="header_plus_2" style="display:block">+</span> <span class="mp-btn-collapsible" id="header_less_2" style="display:none">-</span>',p=document.querySelector("#header_plus_2"),u=document.querySelector("#header_less_2"),y.onclick=function(){"none"===a.style.display?(a.style.display="block",u.style.display="block",a.style.display="block",p.style.display="none"):(a.style.display="none",u.style.display="none",i.style.display="none",p.style.display="block")});var y=document.querySelectorAll(".mp-save-button");0!==y.length&&Array.from(y).forEach(function(e){e.addEventListener("click",function(){document.querySelector(".woocommerce-save-button").click()})})});