Skip to content

Commit

Permalink
fix: exclude search page from cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
xmile1 committed Dec 8, 2023
1 parent dd2d7f0 commit 2800ce6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/contentScripts/scripts/tweetProcessor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"]')

Expand Down

0 comments on commit 2800ce6

Please sign in to comment.