PageSourceSearch

https://www.starvations.jp/js/analytics_cookie.js

js starvations.jp collected 2026-09-24 11:48:30 UTC 1,313 bytes, 51 lines download raw bytes

1setAnalytics = (function(){
2
3	var setAnalytics = {};
4
5	setAnalytics.getCookie = function(){
6		var cookies = document.cookie.split('; '),
7		cookieLists = {},
8		cookieText,
9		cookie,
10		expire;
11
12		for(var i=0;i<cookies.length;i++){
13			cookie = cookies[i].split('=');
14			cookieLists[cookie[0]]=cookie[1];
15			if(cookie[0] === 'setAnalytics' ){break;}
16			
17		}
18
19		if(!cookieLists['setAnalytics']){
20			expire =  new Date();
21			expire.setTime( expire.getTime() + 60*60*24*365 );
22			cookieText = Math.random().toString(36).slice(-8)+Math.random().toString(36).slice(-8);
23			document.cookie = 'setAnalytics=' + cookieText + ';path=/; expires=' + expire.toUTCString();
24		}else{
25			cookieText = cookieLists['setAnalytics'];
26		}
27
28		return cookieText;
29	};
30
31	function addZero(num){
32		return ('0' + num).slice(-2);
33	}
34
35	setAnalytics.getAccessTime = function(){
36		var dates  = new Date();
37		var year   = dates.getFullYear();
38		var month  = dates.getMonth()+1;
39		var date   = dates.getDate();
40		var hour   = dates.getHours();
41		var minute = dates.getMinutes();
42		var second = dates.getSeconds();
43
44		date = year+'/'+addZero(month)+'/'+addZero(date)+' '+addZero(hour)+':'+addZero(minute)+':'+addZero(second);
45
46		return date;
47	};
48
49	setAnalytics.getCookie();
50	return setAnalytics;
51})();

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.