Skip to content

Commit

Permalink
fix: decrypt quote block
Browse files Browse the repository at this point in the history
  • Loading branch information
guanbinrui authored and Jack-Works committed Jan 7, 2020
1 parent 4b32acf commit 5663e34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/social-network-provider/twitter.com/utils/selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,13 @@ export const postsImageSelector = (node: HTMLElement) =>
export const postsContentSelector = () =>
querySelectorAll(
[
// 'article > div[lang]', // TODO: this selector maybe works in new twitter test is required
'.tweet-text > div', // both timeline and detail page for legacy twitter
'[data-testid="tweet"] > div > div[lang]', // timeline page and tread page for new twitter
'[data-testid="tweet"] + div > div[lang]', // detail page for new twitter
'[data-testid="tweet"] ~ div[lang]', // detail page for new twitter
'[data-testid="tweet"] [role="blockquote"] div[lang]', // timeline page retweet quote block for new twitter
'[data-testid="tweet"] ~ div [role="blockquote"] div[lang]', // detail page retweet quote block for new twitter
].join(),
)

Expand Down

0 comments on commit 5663e34

Please sign in to comment.