Skip to content

Commit

Permalink
Merge pull request #575 from cirx1e/master
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD authored Oct 7, 2023
2 parents f9e9937 + af8fcd9 commit b359eae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/injection.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,15 @@ 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('/account') ||
realPath.startsWith('/settings') ||
/^\/[A-z-0-9-_]{1,15}\/status\/\d{5,32}\/analytics$/.test(realPath)
)
Expand Down

0 comments on commit b359eae

Please sign in to comment.