Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Highlight things mentioning GitHub on Hacker News using defunkt/dotjs
// Highlight articles on/about GitHub
$('span, a, p').filter(':contains("github")')
.css('background-color', '#ffff66')
$('span, a, p').filter(':contains("GitHub")')
.css('background-color', '#ffff66')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.