Added new path to libremdb https://github.com/libredirect/browser_extension/issues/818
This commit is contained in:
parent
84c363d390
commit
413b3c619c
|
@ -575,6 +575,14 @@ function redirect(url, type, initiator, forceRedirection) {
|
||||||
}
|
}
|
||||||
return `${randomInstance}${url.pathname}${url.search}`
|
return `${randomInstance}${url.pathname}${url.search}`
|
||||||
}
|
}
|
||||||
|
case "libremdb": {
|
||||||
|
if (url.pathname.startsWith("/Name")) {
|
||||||
|
for (const [key, value] of url.searchParams.entries()) {
|
||||||
|
return `${randomInstance}/title/${encodeURIComponent(key)}`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return `${randomInstance}${url.pathname}${url.search}`
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
return `${randomInstance}${url.pathname}${url.search}`
|
return `${randomInstance}${url.pathname}${url.search}`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue