diff --git a/src/extension/content-script/batteries/Twitter.ts b/src/extension/content-script/batteries/Twitter.ts index eeecf1a058..745c5fb24f 100644 --- a/src/extension/content-script/batteries/Twitter.ts +++ b/src/extension/content-script/batteries/Twitter.ts @@ -38,9 +38,11 @@ function getUserData(username: string) { const element = document.querySelector( '[data-testid="primaryColumn"] [data-testid="UserDescription"]' ); - const imageUrl = document.querySelector( - `[data-testid="primaryColumn"] a[href="/${username}/photo" i] img` - )?.src; + const imageUrl = document.querySelectorAll( + `[data-testid="primaryColumn"] a[href="/${username}/photo" i] img, + [data-testid="primaryColumn"] a[href="/${username}/nft" i] img` // for nft profile + )?.[0].src; + const location = document.querySelector( `[data-testid="primaryColumn"] [data-testid="UserLocation"]` );