Skip to content

Instantly share code, notes, and snippets.

@samarpanda
Created June 18, 2014 02:53
Show Gist options
  • Save samarpanda/9dac392d37bf3baa6270 to your computer and use it in GitHub Desktop.
Save samarpanda/9dac392d37bf3baa6270 to your computer and use it in GitHub Desktop.
_fbq.push.toSting()
/*
* _fbq used for facebook custom audience
* Array.push overriden
*/
function (t) {
if (Object.prototype.toString.call(t) !== '[object Array]') return false;
var u = t.shift();
if (!u) return false;
var v = f[u];
if (typeof v !== 'function') return false;
if (a._fbds) {
var w = a._fbds.pixelId;
if (h.test(w)) {
g.push(w);
delete a._fbds.pixelId;
}
}
return v.apply(f, t);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment