Resolve issue with instagram not redirecting after going back a page

Closes https://github.com/libredirect/libredirect/issues/389
This commit is contained in:
BobIsMyManager 2022-07-27 11:25:41 +01:00
parent 0803eb5e04
commit a9d3245a0a
1 changed files with 3 additions and 3 deletions

View File

@ -78,8 +78,8 @@ browser.storage.onChanged.addListener(init)
function all() {
return [
...instagramRedirects.bibliogram.normal,
...instagramRedirects.bibliogram.tor,
...bibliogramNormalRedirectsChecks,
...bibliogramTorRedirectsChecks,
...bibliogramNormalCustomRedirects,
...bibliogramTorCustomRedirects,
...bibliogramI2pCustomRedirects,
@ -89,8 +89,8 @@ function all() {
function redirect(url, type, initiator, disableOverride) {
if (disableInstagram && !disableOverride) return
if (initiator && all().includes(initiator.origin)) return "BYPASSTAB"
if (!targets.includes(url.host)) return
if (initiator && all().includes(initiator.origin)) return "BYPASSTAB"
if (!["main_frame", "sub_frame", "xmlhttprequest", "other", "image", "media"].includes(type)) return
const bypassPaths = [/about/, /explore/, /support/, /press/, /api/, /privacy/, /safety/, /admin/, /\/(accounts\/|embeds?.js)/]