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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

navigator.vendor

Post Reply
dian
Posts: 21
Joined: Thu Aug 29, 2019 8:42 am

navigator.vendor

Post by dian »

Hi everyone

How could we override window.navigator.vendor /appName / etc ?
User avatar
salvadordf
Posts: 4575
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: navigator.vendor

Post 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,})
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

Re: navigator.vendor

Post 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
User avatar
salvadordf
Posts: 4575
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: navigator.vendor

Post 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.
Post Reply