Skip to content

Commit

Permalink
fix(google): strictly determine whether an element is a Twitter entry
Browse files Browse the repository at this point in the history
Avoid treating '安全に関する情報' as a Twitter entry.
  • Loading branch information
iorate committed Mar 22, 2020
1 parent 99cd3d9 commit d64ebfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/engines/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ if (!mobile({ tablet: true })) {
getEntry: addedElement => {
if (
!addedElement.matches('.xpd') ||
!addedElement.querySelector(':scope > div > a > .kCrYT')
!addedElement.querySelector(':scope > div:first-child > a > .kCrYT')
) {
return null;
}
Expand Down

0 comments on commit d64ebfb

Please sign in to comment.