Hi everyone
How could we override window.navigator.vendor /appName / etc ?
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
navigator.vendor
- salvadordf
- Posts: 4575
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: navigator.vendor
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 :
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
This works, but how do I make it visible to sites?Object.defineProperty(navigator, "platform", {value: "asd", configurable: false, writable: false,});
console.log( navigator.platform ); // asd
https://browserleaks.com/javascript
- salvadordf
- Posts: 4575
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: navigator.vendor
I'm sorry but I'm not the author of that code and I'm not a JavaScript expert.
If you really want to modify those values you might have to modify the Chromium sources and build the CEF binaries again.

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