MCPcopy Index your code
hub / github.com/refined-github/refined-github / isPopular

Function isPopular

source/features/netiquette.tsx:45–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45function isPopular(): boolean {
46 return (
47 countElements('[data-testid="comment-header"]') > 30
48 // This element only appears after 6 participants
49 || looseParseInt($optional('[aria-label*="other participants"]')?.ariaLabel) > 30
50 || elementExists('[data-testid="issue-timeline-load-more-count-front"]')
51 // TODO [2027-01-01]: Drop after the legacy PR view is removed
52 || countElements('.timeline-comment') > 30
53 || countElements('.participant-avatar') > 10
54 );
55}
56
57export function getResolvedText(closingDate: Date): JSX.Element {
58 const ago = <strong>{twas(closingDate.getTime())}</strong>;

Callers 1

initBannerFunction · 0.85

Calls 1

looseParseIntFunction · 0.85

Tested by

no test coverage detected