From ade64247be8a657e79673554af872ebb528d8b1f Mon Sep 17 00:00:00 2001 From: cirxle <133132480+cirx1e@users.noreply.github.com> Date: Sat, 7 Oct 2023 18:32:13 +0000 Subject: [PATCH 1/2] Fix Breaks "login with Twitter" #564 --- scripts/injection.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/injection.js b/scripts/injection.js index ca209f17..ddb9639e 100644 --- a/scripts/injection.js +++ b/scripts/injection.js @@ -122,12 +122,14 @@ if(realPath === '/intent/follow') { let screen_name = location.search.split('screen_name=')[1].split('&')[0]; location.replace(`/${screen_name}`); } -if (!hrefUrl.includes('newtwitter=true') && +if ( + !hrefUrl.includes('newtwitter=true') && ( realPath.startsWith('/i/flow/') || realPath.startsWith('/i/premium_sign_up/') || realPath.startsWith('/i/events/') || realPath.startsWith('/i/spaces/') || + realPath.startsWith('/i/oauth2') || realPath.startsWith('/settings') || /^\/[A-z-0-9-_]{1,15}\/status\/\d{5,32}\/analytics$/.test(realPath) ) From af8fcd91d66b913e1e4d6aa933e50e00c2cad746 Mon Sep 17 00:00:00 2001 From: cirxle <133132480+cirx1e@users.noreply.github.com> Date: Sat, 7 Oct 2023 18:41:54 +0000 Subject: [PATCH 2/2] Fix "Authenticate your account" prompt is broken #574 --- scripts/injection.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/injection.js b/scripts/injection.js index ddb9639e..cc62f96f 100644 --- a/scripts/injection.js +++ b/scripts/injection.js @@ -130,6 +130,7 @@ if ( realPath.startsWith('/i/events/') || realPath.startsWith('/i/spaces/') || realPath.startsWith('/i/oauth2') || + realPath.startsWith('/account') || realPath.startsWith('/settings') || /^\/[A-z-0-9-_]{1,15}\/status\/\d{5,32}\/analytics$/.test(realPath) )