Skip to content

Commit

Permalink
github edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
canalun committed Feb 17, 2024
1 parent d6e2dfb commit 360e510
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/game/getBlockElements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ function isVisible(element: Element): boolean {
)
}

// Edge case on Github.
if (element.tagName === "RELATIVE-TIME") {
return true
}

if (
hasNoBorder(element) &&
hasNoBackgroundColor(element) &&
Expand All @@ -151,7 +156,7 @@ function isVisible(element: Element): boolean {
return false
}

// Ultra edge case on Google Search page.
// Edge case on Google Search page.
if (isClippedToTinySize(element)) {
return false
}
Expand Down

0 comments on commit 360e510

Please sign in to comment.