katagaki / Unagent

User agent changer for Safari
https://apps.apple.com/app/id6448220941
32 stars 7 forks source link

Extension does not override `navigator.userAgent` #27

Open vitkutny opened 3 weeks ago

vitkutny commented 3 weeks ago

Extension does not override navigator.userAgent which is used for detection in JS/PWA applications. I am trying to use Slack app in Safari – Huddles are locked behind Chrome check , but everything works if User-Agent is changed from Develop menu. It could work with this extension if navigator.userAgent is changed from extension as well.

katagaki commented 3 weeks ago

Hi @vitkutny

I'll take a look at this when I have time, it seems like Safari 18 may support more resource types than what is currently specified (see #29 ).

If you have a solution, please feel free to open a pull request!