Added support for /reel and /tv for instagram #144
This commit is contained in:
parent
a849fe0f4f
commit
d007f595d6
@ -97,7 +97,6 @@ function setProtocol(val) {
|
||||
}
|
||||
|
||||
function redirect(url, type, initiator) {
|
||||
|
||||
if (disable) return;
|
||||
if (
|
||||
initiator &&
|
||||
@ -116,6 +115,8 @@ function redirect(url, type, initiator) {
|
||||
|
||||
if (url.pathname === "/" || reservedPaths.includes(url.pathname.split("/")[1]))
|
||||
return `${randomInstance}${url.pathname}${url.search}`;
|
||||
if (url.pathname.startsWith("/reel") || url.pathname.startsWith("/tv"))
|
||||
return `${randomInstance}/p${url.pathname}${url.search}`;
|
||||
else
|
||||
return `${randomInstance}/u${url.pathname}${url.search}`; // Likely a user profile, redirect to '/u/...'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user