Merge pull request #896 from hamzakat/patch-1
Disable redirection when a link in the YouTube description section is entered
This commit is contained in:
commit
bf64922d2c
|
@ -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