YePpHa / YouTubeCenter

YouTube Center is a userscript designed to expand the functionality of YouTube. It includes the ability to download the video you're watching, auto selecting your preferred video quality and much more.
MIT License
2.89k stars 520 forks source link

Buggy with Spoof/Fake User-agent #988

Open ldgbc opened 10 years ago

ldgbc commented 10 years ago

I'm currently using Firefox but sometime i spoof/fake the user agent to other web browser such as Chrome, InternetExplorer or Safari. The problem when spoofing these useragent with YouTubeCenter (YTC) is that YTC check and use user-agent for compatibility reason(?). Could it be possible to add a setting that let this user agent checking mechanism disable?

YePpHa commented 10 years ago

YouTube Center does not use your user-agent for anything other than if you're using the Opera extension and it's only to disable the update checker in YouTube Center. YouTube Center does log your user-agent in the debug log, but that's it.

ldgbc commented 10 years ago

That is weird, look like I was wrong in my initial testing. This problem seem to only occur for Chrome/Chromium user agent. I use Random Agent Spoofer (https://addons.mozilla.org/en-US/firefox/addon/random-agent-spoofer/ or https://github.com/dillbyrne/random-agent-spoofer/)

Could it be Google/Youtube doing that causing the problem? But that shouldn't mess up YTC own's setting should it? The check box is blank when this bug occur, if it Google doing, only native icon/thumbnails should have problems.

Based on the Dev build 401 For example; Using Firefox, Use Random Agent Spoofer, spoof User Agent (UA) to be "Windows > Firefox 30 (Win 8 32); everyone work fine. Button is there, nothing missing. Now let change to any other desktop browser, let try "Windows > Chrome 33 (Win 8 64)". Button image is missing/blank, thumbnails blank, setting check box is blank, etc.