function checkIfPrev(){ var ofTheMac, coS, checkForAmp, cooGet = kookeh_getValue("lastRead"); if(document.cookie.match('lastRead')){ if(cooGet.match(threadNumber) ){ coS = cooGet.split(','); $(coS).each(function(j){ checkForAmp = coS[j].split('t=')[1].split('&')[0].split('#')[0]; if( checkForAmp == threadNumber ){ ofTheMac = coS[j]; return false; } }); } } else{ ofTheMac = 'newCookie'; } return ofTheMac, coS.length; } yOff = window.pageYOffset; window.addEventListener('load', function(){ var fuckthisistakingforever = checkIfPrev(); if(fuckthisistakingforever != 'newCookie'){ console.log(hazRead('load')); } }, false);