diff --git a/src/contentScripts/scripts/tweetProcessor/index.ts b/src/contentScripts/scripts/tweetProcessor/index.ts index be2c792..5411207 100644 --- a/src/contentScripts/scripts/tweetProcessor/index.ts +++ b/src/contentScripts/scripts/tweetProcessor/index.ts @@ -19,8 +19,9 @@ function observeTweets(element: Element, options: any): void { 'verified_followers', 'followers_you_follow', 'following', + 'search', ] - const urlPath = location.href.split('/').pop() as string + const urlPath = location.href.split('/').pop()?.replace(/\?.*$/, '') ?? '' const isExcludedPath = excludedPaths.includes(urlPath) const isTweetSection = (node as Element).matches('[data-testid="cellInnerDiv"]')