OwlCyberSecurity - MANAGER
Edit File: popular-posts.min.js
;var MonsterInsights_Popular_Posts={init:function(){document.addEventListener('DOMContentLoaded',this.grab_widgets_with_ajax)},grab_widgets_with_ajax:function(){var e=new XMLHttpRequest(),i=monsterinsights_pp.ajaxurl,n=document.querySelectorAll('.monsterinsights-popular-posts-widget-json'),t,o=n.length,s='action=monsterinsights_popular_posts_get_widget_output&post_id='+monsterinsights_pp.post_id;s+='&_ajax_nonce='+monsterinsights_pp.nonce;for(t=0;t<o;++t){s+='&data[]='+n[t].innerHTML};e.open('POST',i);e.setRequestHeader('Content-Type','application/x-www-form-urlencoded');e.onload=function(){if(e.status===200){let rendered_widgets=JSON.parse(e.responseText);for(t=0;t<o;++t){n[t].parentElement.innerHTML=rendered_widgets[t]}}};e.send(s)},};MonsterInsights_Popular_Posts.init();