WebPage that I research uses JS for doing some stuff. In the JS source code of the webpage I found this
i.audioUnmaskSource(e.src)
When I am trying to call this function from the console in Chrome it says
VM1452:1 Uncaught ReferenceError: i is not defined
at <anonymous>:1:1
Also Scope in developer tools says that i
is an Object and is inside the Closure.
How can I access this function from Console in Chrome?
Scope of devtools
Here is the part of code that is called. It is a function audioUnamskSource
as you can see:
function r(e) {
if (!a() && ~e.indexOf("audio_api_unavailable")) {
var t = e.split("?extra=")[1].split("#")
, n = "" === t[1] ? "" : o(t[1]);
if (t = o(t[0]),
"string" != typeof n || !t)
return e;
n = n ? n.split(String.fromCharCode(9)) : [];
for (var r, s, l = n.length; l--; ) {
if (s = n[l].split(String.fromCharCode(11)),
r = s.splice(0, 1, t)[0],
!i[r])
return e;
t = i[r].apply(null, s)
}
if (t && "http" === t.substr(0, 4))
return t
}
return e
}