PageSourceSearch

http://krasnodon.net/mirolog.js

js krasnodon.net collected 2026-10-02 22:58:04 UTC 2,750 bytes, 81 lines download raw bytes

1/* -----------------------------------------------
2MIROHOST COUNTER
3  ------------------------------------------------ */
4// SETTINGS:
5
6   id = "krasnodon";
7   
8// If you're using a frameset and are not getting correct 
9// referrers, please uncomment the following line:
10// pp_frames = true;
11
12// define some defaults -------------------------------------
13if(showme==null) var showme='y';
14if(st==null)     var st='img';    // st means show-type
15
16
17// get the user agent name ----------------------------------
18v = navigator.appName;
19
20// get the screen resolution --------------------------------
21c=0;
22if (v != "Netscape") c = screen.colorDepth;
23else c = screen.pixelDepth;
24
25// get the screen size --------------------------------------
26s = screen.width+"x"+screen.height;
27
28// get the document's title ---------------------------------
29t = escape(document.title);
30
31// get the document's referrer -------------------------------
32var f = "";
33
34// if pp_frames is true then try getting the framed referral (without error checking)
35if (typeof(pp_frames) != "undefined")
36	if (pp_frames)
37		f = top.document.referrer;
38
39// get the referral for non-multi-domained-framed sites using a Netscape browser
40if ((f == "") || (f == "[unknown origin]") || (f == "unknown") || (f == "undefined"))
41	if (document["parent"] != null) 
42		if (parent["document"] != null) // ACCESS ERROR HERE!
43			if (parent.document["referrer"] != null) 
44				if (typeof(parent.document) == "object")
45					f = parent.document.referrer; 
46
47// get the referral for the current document if a framed referral wasn't found
48if ((f == "") || (f == "[unknown origin]") || (f == "unknown") || (f == "undefined"))
49	if (document["referrer"] != null) 
50		f = document.referrer;
51
52// convert all the unknown's into blank
53if ((f == "") || (f == "[unknown origin]") || (f == "unknown") || (f == "undefined"))
54	f = "";
55
56// escape the referral
57f = escape(f);
58
59// getting data ready to send -------------------------------
60r="?id="+id+"&referer="+f+"&r="+s+"&c="+c+"&showme="+showme+"&st="+st+"&title="+t;
61
62// adding logid if called by st='phpjs'
63if(jslogid==null) var jslogid = 0;
64else r = r + "&jslogid="+jslogid;
65
66
67
68if (st=='js') { // calling by JavaScript-tag
69	if (v != "Microsoft Internet Explorer") {
70		r = r+"&url="+document.URL; // $HTTP_REFERER problem with NS,...
71	}
72	document.open();
73	document.write("<script language=\"JavaScript\" type=\"text/javascript\" src=\"http://counter.mirohost.net/counter.php"+r+"\"></script>");
74	document.close();
75} else { // calling by IMG-tag
76	rand = Math.round(1000*Math.random());
77	r = r+"&b="+rand;  //force the page to load the IMG
78	document.open();
79	document.write("<img src=\"http://counter.mirohost.net/counter.php"+r+"\" alt=\"\" border=\"0\">");
80	document.close();
81}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.