Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var org_str = "vduzzz8d";
- var session_str = "a91013b9e0042d1a033ab51fa60d08281445023133826";
- var base_str = "https://h.online-metrix.net/fp";
- var page_id = "1";
- var ip_addr_str = "FFFFFFFFFFFFFFFF";
- var tarpitting_param = "";
- var carrier_id_enabled = "false";
- var flash_tags = "true";
- var thm_tags = {
- injectIframe: function(org_id, session_id, page_id) {
- var dom, doc, where, iframe = document.createElement('iframe');
- iframe.src = "javascript:false";
- (iframe.frameElement || iframe).style.cssText = "width:100px;height:100px;border:0;position:absolute;top:-5000px;";
- where = document.getElementById("thm_iframe_loc");
- if (!where) {
- document.body.appendChild(iframe);
- } else {
- where.parentNode.insertBefore(iframe, where);
- }
- try {
- doc = iframe.contentWindow.document;
- } catch (e) {
- dom = document.domain;
- iframe.src = "javascript:var d=document.open();d.domain='" + dom + "';void(0);";
- doc = iframe.contentWindow.document;
- }
- doc.open()._l = function() {
- if (typeof this.readyState === "undefined" || typeof this.readyState === "unknown") {
- this.readyState = "complete";
- }
- if (dom) {
- this.domain = dom;
- }
- var divx, param1, param2, obj, swf_url, win, img, js, u, p, div = this.createElement('p');
- this.body.appendChild(div);
- div.style.background = "url(" + base_str + "/clear.png?org_id=" + org_id + "&session_id=" + session_id + "&m=1&w=" + ip_addr_str + tarpitting_param + ")";
- img = this.createElement("img");
- img.src = base_str + "/clear.png?org_id=" + org_id + "&session_id=" + session_id + "&m=2" + tarpitting_param;
- this.body.appendChild(img);
- js = this.createElement("script");
- js.src = base_str + "/check.js?org_id=" + org_id + "&session_id=" + session_id + tarpitting_param + "&pageid=" + page_id;
- this.body.appendChild(js);
- if (carrier_id_enabled === "true") {
- var ciddoc, cidframe = document.createElement("iframe");
- cidframe.src = "javascript:false";
- (cidframe.frameElement || cidframe).style.cssText = "width:100px;height:100px;border:0;position:absolute;top:-5000px;";
- document.body.appendChild(cidframe);
- try {
- ciddoc = cidframe.contentWindow.document;
- } catch (e) {
- cidframe.src = "javascript:var d=document.open();d.domain='" + document.domain + "';void(0);";
- ciddoc = cidframe.contentWindow.document;
- }
- ciddoc.open()._l = function() {
- var cidscript = this.createElement("script");
- cidscript.src = base_str + "/checkcid.js?org_id=" + org_id + "&session_id=" + session_id;
- this.body.appendChild(cidscript);
- };
- ciddoc.write('<body onload="document._l();">');
- ciddoc.close();
- }
- if (flash_tags === "true") {
- u = navigator.userAgent.toLowerCase();
- p = navigator.platform.toLowerCase();
- win = p ? /win/.test(p) : /win/.tesft(u);
- try {
- ie = !+"\v1";
- if (!ie) {
- ie = /*@cc_on!@*/ false;
- }
- } catch (e) {}
- if (!ie) {
- ie = (navigator.userAgent.indexOf('MSIE') > -1);
- }
- swf_url = base_str + "/fp.swf?org_id=" + org_id + "&session_id=" + session_id + tarpitting_param;
- if (ie && win) {
- divx = this.createElement("div");
- divx.innerHTML = '<object type="application/x-shockwave-flash"data="' + swf_url + '"width="1"height="1"><param name="movie"value="' + swf_url + '"/><param name="wmode"value="transparent"/></object>';
- this.body.appendChild(divx);
- } else {
- obj = this.createElement('object');
- obj.setAttribute("type", "application/x-shockwave-flash");
- obj.setAttribute("data", swf_url);
- obj.setAttribute("width", "1");
- obj.setAttribute("height", "1");
- param1 = this.createElement('param');
- param1.setAttribute("name", "movie");
- param1.setAttribute("value", swf_url);
- param2 = this.createElement('param');
- param2.setAttribute("name", "wmode");
- param2.setAttribute("value", "transparent");
- obj.appendChild(param1);
- obj.appendChild(param2);
- this.body.appendChild(obj);
- }
- }
- };
- doc.write('<body onload="document._l();">');
- doc.close();
- },
- go: function() {
- if (session_str && org_str) {
- var isWebkit = 'WebkitAppearance' in document.documentElement.style;
- if (document.body && (document.readyState === 'complete' || !isWebkit)) {
- this.injectIframe(org_str, session_str, page_id);
- return;
- }
- var waittime = 200;
- var node;
- if (typeof window !== "undefined" && typeof window !== "unknown" && window !== null) {
- node = window;
- } else {
- node = document.body;
- }
- if (node.addEventListener) {
- node.addEventListener("load", function() {
- thm_tags.injectIframe(org_str, session_str, page_id);
- }, false);
- } else {
- if (node.attachEvent) {
- node.attachEvent("onload", function() {
- thm_tags.injectIframe(org_str, session_str, page_id);
- });
- } else {
- var oldonload = node.onload;
- node.onload = new function() {
- var r = true;
- if (oldonload !== null && typeof oldonload === "function") {
- r = oldonload();
- }
- setTimeout(function() {
- thm_tags.injectIframe(org_str, session_str, page_id);
- }, waittime);
- node.onload = oldonload;
- return r;
- };
- }
- }
- }
- }
- };
- thm_tags.go();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement