didierfred / SimpleModifyHeaders

Extension for firefox and chrome to modify headers
172 stars 31 forks source link

User-Agent #33

Closed StVol33 closed 3 years ago

StVol33 commented 3 years ago

Приветствую! Подскажите, почему не работает смена User-Agent на сайте https://online.vtb.ru в брузере ФФ 52 http://ipic.su/img/img7/fs/screenshot2021-10-20002.1634733461.jpg http://ipic.su/img/img7/fs/screenshot2021-10-20001.1634733200.jpg

didierfred commented 3 years ago

Does it works on other web sites ? Could you give me an export of your configuration (export button of the SimpleModifyHeader config screen)

StVol33 commented 3 years ago

Does it works on other web sites ?

Yes! For example. https://www.auchan.ru/

Could you give me an export of your configuration (export button of the SimpleModifyHeader config screen)

http://sendfile.su/1623573

didierfred commented 3 years ago

Could you check with the dev panel (F12) if the header is modify using url https://online.vtb.ru/favicon.ico

Do you have any other plugin installed on your firefox ?

StVol33 commented 3 years ago

http://ipic.su/img/img7/fs/screenshot2021-10-24001.1635086231.jpg

Do you have any other plugin installed on your firefox ?

Yes! For example, I have User Agent Switcher, but its- turn off.

didierfred commented 3 years ago

On your picture , i do not see the request header

StVol33 commented 3 years ago

What should I do to make it appear?

didierfred commented 3 years ago

I do not have the same version as you , if you click on the arrow before the url , you may have more information

StVol33 commented 3 years ago

ОК! It shows FF 92: http://ipic.su/img/img7/fs/screenshot2021-10-29001.1635506700.jpg But why does the site say "the browser is out of date"?

didierfred commented 3 years ago

The web page is probably detecting your browser via javascript code and not via the request header .

See for example : https://codepedia.info/editor-example?id=47

StVol33 commented 3 years ago

Interesting! Then why, if I use the User Agent Switcher extension (https://chrispederick.com/work/user-agent-switcher/) and change the User Agent there to FF 92, then the site https://online.vtb.ru/ shows acceptable browser? http://ipic.su/img/img7/fs/screenshot2021-10-31001.1635680353.jpg

didierfred commented 3 years ago

I add a look to the code of user-agent-switcher , it s because the plugin is not modify the header but is setting the user agent by setting user preference via javascript https://github.com/chrispederick/user-agent-switcher/blob/c98c287ac7e20ebfd38cbb12fd59613cdabce368/development/source/content_common/useragentswitcher/useragentswitcher.js#L439