MCPcopy Create free account
hub / github.com/6dylan6/jdm / getBody

Function getBody

function/sign_graphics_validate.js:2065–2082  ·  view source on GitHub ↗
(userAgent, url = document.location.href)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

td_collect_exeFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected