MCPcopy Create free account
hub / github.com/Semporia/Scripts / getBody

Function getBody

sign_graphics_validate.js:2058–2075  ·  view source on GitHub ↗
(userAgent, url = document.location.href)

Source from the content-addressed store, hash-verified

2056};
2057
2058function getBody(userAgent, url = document.location.href) {
2059 navigator.userAgent = userAgent
2060 let href = url
2061 let choose = /((https?:)\/\/([^\/]+))(.+)/.exec(url)
2062 let [, origin, protocol, host, pathname] = choose;
2063 document.location.href = href
2064 document.location.origin = origin
2065 document.location.protocol = protocol
2066 document.location.host = host
2067 document.location.pathname = pathname
2068 const JF = new JdJrTdRiskFinger();
2069 let fp = JF.f.get(function (t) {
2070 risk_jd_local_fingerprint = t
2071 return t
2072 });
2073 let arr = td_collect_exe()
2074 return { fp, ...arr }
2075}
2076
2077JdJrTdRiskFinger.getBody = getBody;
2078module.exports = JdJrTdRiskFinger;

Callers

nothing calls this directly

Calls 2

td_collect_exeFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected