var sam = document.createElement("div"); sam.setAttribute("id","ad-59"); document.currentScript.parentElement.appendChild(sam); document.getElementById("ad-59").insertAdjacentHTML( 'afterend', ''); var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { const regex = /.*\("(.*)"\).*/gm; var resp = ''; let m; while ((m = regex.exec(this.responseText)) !== null) { if (m.index === regex.lastIndex) { regex.lastIndex++; } m.forEach((match, groupIndex) => { if(groupIndex == 1){ resp = resp + match; } }); } var code = document.createElement("div"); code.innerHTML = resp.replace(/\\"/g, '"')/*.replace(/\\\//g, '\/').replace(/\/\/