Cast YouTube in Browser-ის მიმოხილვები
Cast YouTube in Browser ავტორი Mark Kray
10 მიმოხილვა
- 5 შეფასება 5-დანმიმომხილველი Firefox-ის მომხმარებელი 12667782, 8 თვის წინWorks as descibed, been using it for 3 days now. Pretty straightforward to set up really, so I'm quite happy with it. People complaining about functionality this extension never claimed to support should read the desciption a bit more extensively.
TY M.K. - 5 შეფასება 5-დანმიმომხილველი GetBroccli, წლის წინWorks. Probably shouldn't need to be an add-on, but hey, some people like it I guess. Please list your user-agent.
შემმუშავებლის პასუხი
თარიღი წლის წინThanks for the review. I made the extension, because I needed this functionality and wanted to have it wrapped up in a convenient package. The user-agent is for the Xbox Series X. Specifically:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; Xbox; Xbox Series X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.82 Safari/537.36 Edge/20.02 - 5 შეფასება 5-დანმიმომხილველი Alejo, 2 წლის წინ
- 5 შეფასება 5-დანმიმომხილველი Matthias Simon, 2 წლის წინ
- 5 შეფასება 5-დანმიმომხილველი mp1010, 2 წლის წინ
- 5 შეფასება 5-დანმიმომხილველი 7kt swe, 2 წლის წინthis addon becomes almost pointless when only having video quality support up to 720p..
I wrote and tested this fix in about:debugging#, this will make all video qualities available
Update background_script.js with this:
"use strict";
if (typeof browser === "undefined") {
var browser = chrome;
}
const targetPage = "https://*.youtube.com/*";
const uaKey = "user-agent";
const refKey = "referer"
const tvUa = "Mozilla/5.0 (PS4; Leanback Shell) Gecko/20100101 Firefox/65.0 LeanbackShell/01.00.01.75 Sony PS4/ (PS4, , no, CH)";
const tvPath = "/tv";
function rewriteUserAgentHeader(e) {
const targetPath = new URL(e.url).pathname;
const originPath = e.originUrl ? new URL(e.originUrl).pathname : undefined;
if (targetPath !== tvPath && originPath !== tvPath) {
return;
}
let uaHeader;
for (let header of e.requestHeaders) {
if (header.name.toLowerCase() === uaKey) {
uaHeader = header;
break;
}
}
if (uaHeader) {
uaHeader.value = tvUa;
}
return { requestHeaders: e.requestHeaders };
}
browser.webRequest.onBeforeSendHeaders.addListener(rewriteUserAgentHeader,
{ urls: [targetPage] },
["blocking", "requestHeaders"]);
**edit**
Well 2k is certainly better than 720p.
You're welcome.შემმუშავებლის პასუხი
თარიღი 2 წლის წინThe quality issues has been fixed and now supports up to 1440p. 4k isn't available, because that is a premium feature and isn't accessible freely on any device. Please update the review to reflect this new version. - 5 შეფასება 5-დანმიმომხილველი fever2k2, 2 წლის წინ