1 var ga_cookies = 0; 2 // document.cookie = '_ga_PDT71TGL77=; Max-Age=0; path = /; domain=.ufl.edu'; 3 document.cookie = '_ga_YKC1BD5ED3=; Max-Age=0; path = /; domain=.ufl.edu'; 4 ga_cookies = getGaCookies(); 5 //console.log( ga_cookies.length ); 6 7 if( ga_cookies.length > 30 ) { 8 deleteAllCookies( ga_cookies ); 9 } 10 11 function getGaCookies() { 12 var cookies = document.cookie.split(";"); 13 var temp_cookies = []; 14 15 for (var i = 0; i < cookies.length; i++) { 16 var cookie = cookies[i]; 17 var eqPos = cookie.indexOf("="); 18 var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie; 19 20 if( cookies[i].includes( "_ga_" ) ) { 21 temp_cookies.push( name.trim() ); 22 } 23 } 24 return temp_cookies; 25 } 26 27 function deleteAllCookies( cookies ) { 28 for (var i = 0; i < cookies.length; i++) { 29 document.cookie = cookies[i] + '=; Max-Age=0; path = /; domain=.ufl.edu'; 30 } 31 }
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.