mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-13 11:00:01 +00:00
Update YouTube UA comment
This commit is contained in:
@@ -490,8 +490,7 @@ function initWhitelist () {
|
|||||||
if (header.name.toLowerCase() === "user-agent") {
|
if (header.name.toLowerCase() === "user-agent") {
|
||||||
/**
|
/**
|
||||||
* New YouTube breaks without the default user agent string,
|
* New YouTube breaks without the default user agent string,
|
||||||
* so pretend to be an old version of Chrome to get the old
|
* so use hybrid Firefox/Chrome version.
|
||||||
* site.
|
|
||||||
*/
|
*/
|
||||||
if (host?.value === "www.youtube.com") {
|
if (host?.value === "www.youtube.com") {
|
||||||
header.value = getChromeUserAgent(os, true);
|
header.value = getChromeUserAgent(os, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user