Fix YouTube live chat replays
This commit is contained in:
parent
260fea6fca
commit
31dfbb457f
|
@ -159,13 +159,13 @@ function redirect(url, type, initiator, forceRedirection) {
|
||||||
case "piped":
|
case "piped":
|
||||||
case "pipedMaterial":
|
case "pipedMaterial":
|
||||||
case "cloudtube": {
|
case "cloudtube": {
|
||||||
if (url.pathname == "/live_chat") {
|
if (url.pathname.startsWith("/live_chat")) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return `${randomInstance}${url.pathname}${url.search}`;
|
return `${randomInstance}${url.pathname}${url.search}`;
|
||||||
}
|
}
|
||||||
case "poketube": {
|
case "poketube": {
|
||||||
if (url.pathname == "/live_chat") {
|
if (url.pathname.startsWith("/live_chat")) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (url.pathname.startsWith('/channel')) {
|
if (url.pathname.startsWith('/channel')) {
|
||||||
|
|
Loading…
Reference in New Issue