Fixed AnonymousOverflow not redirecting q/ https://github.com/libredirect/browser_extension/issues/796
This commit is contained in:
parent
0465d76ea9
commit
72abcc5cfd
|
@ -443,7 +443,6 @@ function redirect(url, type, initiator, forceRedirection) {
|
||||||
return `${randomInstance}${url.pathname}${url.search}`
|
return `${randomInstance}${url.pathname}${url.search}`
|
||||||
}
|
}
|
||||||
case "anonymousOverflow": {
|
case "anonymousOverflow": {
|
||||||
if (!url.pathname.startsWith('/questions') && url.pathname != '/') return randomInstance
|
|
||||||
if (url.hostname == "stackoverflow.com") {
|
if (url.hostname == "stackoverflow.com") {
|
||||||
const threadID = /\/(\d+)\/?$/.exec(url.pathname)
|
const threadID = /\/(\d+)\/?$/.exec(url.pathname)
|
||||||
if (threadID) return `${randomInstance}/questions/${threadID[1]}${url.search}`
|
if (threadID) return `${randomInstance}/questions/${threadID[1]}${url.search}`
|
||||||
|
|
Loading…
Reference in New Issue