Create a gist now

Instantly share code, notes, and snippets.

@ZoczuS /evercookie1.as Secret
Created Feb 3, 2015

shared = SharedObject.getLocal("evercookie");
if(everdata) {
var newdata = everdata.split("=");
var str = shared.data.cookie;
var results = str.split("&");
var i = 0;
while(i < results.length) {
var elem = results[i].split("=");
if(elem[0] != newdata[0]) {
everdata = everdata + "&" + results[i];
}
i = i + 1;
}
}
shared.data.cookie = everdata;
shared.flush();
getURL("javascript:if(_evercookie_flash_var)_evercookie_flash_var('" + shared.data.cookie + "');", "");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment