.. / google-client-api
Star Fork

The Google API Client Library for JavaScript is designed for JavaScript client-application developers. It offers simple, flexible access to many Google APIs.

google-api-javascript-client
google
...

≤5BIk7BglYEE

<iframe> @name @src 🛡️ unsafe-eval ⏱️ before-call
More information

Root Cause

Source: https://apis.google.com//scs/abc-static//js/k=gapi.lb.en.5BIk7BglYEE.O/m=client/rt=j/sv=1/d=1/ed=1/am=AAAC/rs=AHpOoo9V8V9Op_7rn4BCy9pIOBNUyU2IjA/cb=gapi.loaded_0?le=scs

var e = document.scripts || document.getElementsByTagName("script") || [];
d = [];
var f = [];
f.push.apply(f, zf("us"));
for (var h = 0; h < e.length; ++h)
    for (var k = e[h], l = 0; l < f.length; ++l)
        k.src && 0 == k.src.indexOf(f[l]) && d.push(k);
0 == d.length && 0 < e.length && e[e.length - 1].src && d.push(e[e.length - 1]);
for (e = 0; e < d.length; ++e)
    d[e].getAttribute("gapi_processed") || (d[e].setAttribute("gapi_processed", !0),
    (f = d[e]) ? (h = f.nodeType,
    f = 3 == h || 4 == h ? f.nodeValue : f.textContent || "") : f = void 0,
    (f = Df(f)) && b.push(f));
a && Ef(c, a);

// [...]

Df = function(a) {
    if (a && !/^\s+$/.test(a)) {
        for (; 0 == a.charCodeAt(a.length - 1); )
            a = a.substring(0, a.length - 1);
        try {
            var b = window.JSON.parse(a)
        } catch (c) {}
        if ("object" === typeof b)
            return b;
        try {
            b = (new Function("return (" + a + "\n)"))()
        } catch (c) {}
        if ("object" === typeof b)
            return b;
        try {
            b = (new Function("return ({" + a + "\n})"))()
        } catch (c) {}
        return "object" === typeof b ? b : {}
    }
}

Related links:

Found by jackfromeast, ishmeals.


Source | History