Disable redirection when a link in the YouTube description section is entered
This commit is contained in:
parent
4fc8c6cdcd
commit
a7665994f0
|
@ -496,6 +496,9 @@ function redirect(url, type, initiator, forceRedirection, incognito) {
|
|||
const watch = url.pathname.substring(url.pathname.lastIndexOf('/') + 1)
|
||||
return `${randomInstance}/watch?v=${watch}`
|
||||
}
|
||||
if (url.hostname.endsWith("youtube.com") && url.pathname.startsWith("/redirect?")) {
|
||||
return url.href
|
||||
}
|
||||
return `${randomInstance}${url.pathname}${url.search}`
|
||||
}
|
||||
case "invidiousMusic": {
|
||||
|
|
Loading…
Reference in New Issue