I want change navigator.userAgentData,but no tips

  • Автор темы Автор темы xxlee
  • Дата начала Дата начала

xxlee

Client
Регистрация
09.03.2022
Сообщения
23
Реакции
3
Баллы
3
How to modify the data in navigator.userAgentData is really important to us. I have seen many users submit this request but have never received a reply.

JavaScript:
Развернуть Свернуть Копировать
navigator.userAgentData.getHighEntropyValues(
    ["architecture", "model", "platform", "platformVersion", "uaFullVersion"])
       .then(ua => { console.log(ua) });

114060


Executing this method will leak a lot of device information. I want to change it, just like modifying userAgent.
 
when starting the instance you can set the user agent in chrome, that should also automatically get used in navigator-
114077

Some example how to set the navigator fields
C#:
Развернуть Свернуть Копировать
instance.ShowNavigatorField(ZennoLab.InterfacesLibrary.Enums.Browser.NavigatorField.Vendor);
instance.SetHeader(ZennoLab.InterfacesLibrary.Enums.Browser.NavigatorField.Vendor, null);
instance.ShowNavigatorField(ZennoLab.InterfacesLibrary.Enums.Browser.NavigatorField.VendorSub);
instance.SetHeader(ZennoLab.InterfacesLibrary.Enums.Browser.NavigatorField.VendorSub, null);
 
  • Оценить
Реакции: xxlee
when starting the instance you can set the user agent in chrome, that should also automatically get used in navigator-
Посмотреть вложение 114077
Some example how to set the navigator fields
C#:
Развернуть Свернуть Копировать
instance.ShowNavigatorField(ZennoLab.InterfacesLibrary.Enums.Browser.NavigatorField.Vendor);
instance.SetHeader(ZennoLab.InterfacesLibrary.Enums.Browser.NavigatorField.Vendor, null);
instance.ShowNavigatorField(ZennoLab.InterfacesLibrary.Enums.Browser.NavigatorField.VendorSub);
instance.SetHeader(ZennoLab.InterfacesLibrary.Enums.Browser.NavigatorField.VendorSub, null);
Thans for your reply.

NavigatorUAData(navigator.userAgentData) different form user-agent
Detail page:

 
  • Оценить
Реакции: myndeswx
Give it a try, at least I use it like this
114078
 
  • Оценить
Реакции: MaximTurbo

Hi. myndeswx

I have tried the method you gave and found it to be useless. (I have looked through the zp development documentation)
This is a completely different approach.
You can try the following code and you will find that your modifications will not take effect.

C#:
Развернуть Свернуть Копировать
navigator.userAgentData.getHighEntropyValues(
    ["architecture", "model", "platform", "platformVersion", "uaFullVersion"])
       .then(ua => { console.log(ua) });
 
  • Оценить
Реакции: myndeswx
Is that still not solved? Any ideas?
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)