Highlight comments by sponsors by fregante · Pull Request #9576 · refined-github/refined-github · GitHub
Skip to content

Highlight comments by sponsors#9576

Merged
fregante merged 1 commit into
mainfrom
sponsored-content
May 23, 2026
Merged

Highlight comments by sponsors#9576
fregante merged 1 commit into
mainfrom
sponsored-content

Conversation

@fregante

@fregante fregante commented May 22, 2026

Copy link
Copy Markdown
Member

Note that GitHub only shows this label on PUBLIC sponsors of "THIS" owner/org.

For example if use foo sponsors YOU, you won't see the Sponsor label on your ORGANIZATION's repo, but only on YOUR repos.

Coloring the whole comment is more troublesome as well as it requires using :has(), which is not worth it in this case.

Test URLs

fregante/webext-storage-cache#19 (comment)

Screenshot

Screenshot 1

Comment thread source/refined-github.css

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also sharing what I saw while playing with the selector 😂 maybe a biiiit much

Image

@fregante fregante merged commit 43f4fd5 into main May 23, 2026
34 checks passed
@SunsetTechuila SunsetTechuila deleted the sponsored-content branch May 23, 2026 15:39
@SunsetTechuila

SunsetTechuila commented May 24, 2026

Copy link
Copy Markdown
Contributor

Screenshot

Screenshot 1

It looks differently for me:

image

dprint/dprint-plugin-typescript#493 (comment)

@SunsetTechuila

Copy link
Copy Markdown
Contributor
content: '';
background: url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'%23db61a2\' width=\'12\' height=\'12\' viewBox=\'0 0 16 16\'%3E%3Cpath d=\'M7.655 14.916zh-.002l-.006-.003-.018-.01a22 22 0 0 1-3.744-2.584C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.044 5.231-3.886 6.818a22 22 0 0 1-3.433 2.414 7 7 0 0 1-.31.17l-.018.01-.008.004a.75.75 0 0 1-.69 0\'/%3E%3C/svg%3E');
width: 1em;
height: 1em;

Works better for me. What about you?

@fregante

fregante commented May 24, 2026

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Make it more obvious when a Sponsor creates/comments on an Issue, Pull Request, or Discussion

2 participants