Awful / Awful.app

Something Awful Forums browser for iOS
https://forums.somethingawful.com/showthread.php?threadid=3837546&perpage=40&noseen=1
137 stars 45 forks source link

Custom user agent for webview: MacOS Chrome agent fixes youtube embed issues #1110

Closed dfsm closed 3 years ago

dfsm commented 3 years ago

For a description of the issue, see this page: https://forums.somethingawful.com/showthread.php?threadid=3837546&pagenumber=110#post517653021

Validated this by:

After all this testing, the agent string being submitted here seems to work reliably. Gonna make this a PR so that you can confirm :)

nolanw commented 3 years ago

I can't reproduce this, on my iPad at least. If I start a scroll on a YouTube embed then it seems to gain focus, as the play button background goes from semitransparent black to solid red, but it doesn't play by itself. But if it helps others then sure!

I'd be happy to revert it at some point if stuff works again, assume it's something to do with the iframe contents and YouTube might fix it on their end. I like to have an Awful-specific user agent so the Forums admins have a sense of how much traffic we're causing, but setting the webview's user agent isn't so bad.