Page 1 of 1

navigator.vendor

Posted: Sun May 24, 2020 9:42 am
by dian
Hi everyone

How could we override window.navigator.vendor /appName / etc ?

Re: navigator.vendor

Posted: Sun May 24, 2020 12:03 pm
by salvadordf
Hi,

I haven't tried but it seems to be possible with JavaScript :
https://www.magpcss.org/ceforum/viewtop ... 011#p38463

You can override "navigator.platform" in JavaScript with this :

Code: Select all

Object.defineProperty(navigator, "platform", {value: "asd", configurable: false, writable: false,})

Re: navigator.vendor

Posted: Mon Jun 01, 2020 8:57 am
by dilfich
Object.defineProperty(navigator, "platform", {value: "asd", configurable: false, writable: false,});
console.log( navigator.platform ); // asd
This works, but how do I make it visible to sites?
https://browserleaks.com/javascript

Re: navigator.vendor

Posted: Tue Jun 02, 2020 7:13 am
by salvadordf
I'm sorry but I'm not the author of that code and I'm not a JavaScript expert. :oops:

If you really want to modify those values you might have to modify the Chromium sources and build the CEF binaries again.