I want to code a script that redefine an existing obfuscated javascript function.
This is the function that I copied from my website.
userAgentKey: function(e) {
return this.options.excludeUserAgent || e.push({
key: "user_agent",
value: this.getUserAgent()
}), e
},
this function return the user agent of my browser(for fingerprinting).
I want to manipulate the return value and want that this function return "exampleBrowserUserAgent". I don't have any experience in OOP.
My problem is that this doesn't redefine my code..
function userAgentKey(){
return "exampleBrowserUserAgent"
}
how can I manipulate the return value?
thanks for your help!
EDIT: the website use the fingerprintjs2.here is the link: enter link description here