Skip to content

Instantly share code, notes, and snippets.

@mathowie
Last active November 11, 2015 07:24
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mathowie/9d9a12890793649897c1 to your computer and use it in GitHub Desktop.
Save mathowie/9d9a12890793649897c1 to your computer and use it in GitHub Desktop.
Swap Twitter Hearts for Emoji
/* Install the Stylish extension for your browser, then add this code
as a new Style. Make sure it applies to the domain 'twitter.com' */
/* Tweet any improvements or comments to @mcnees. */
/* Hide the heart for un-Faved tweets. */
.ProfileTweet-actionButton .HeartAnimationContainer {
visibility: hidden;
}
/* Replace the heart for un-Faved tweets with an emoji. */
.ProfileTweet-actionButton .HeartAnimationContainer:after {
content:'⚪️';
visibility: visible;
display: block;
position: absolute;
}
/* Hide the heart for Faved tweets. */
.ProfileTweet-actionButtonUndo .HeartAnimationContainer {
visibility: hidden;
}
/* Replace the heart for Faved tweets with an emoji. */
.ProfileTweet-actionButtonUndo .HeartAnimationContainer:after {
content:'💯';
visibility: visible;
display: block;
position: absolute;
}
/* Change the text color for the Fav count. */
.ProfileTweet-actionCountForPresentation {
color: #999;
}
/* Hide the heart icon for Favs in the notification stream. */
.activity-type-favorite {
visibility: hidden;
}
/* Replace them with an emoji. */
.activity-type-favorite:after {
content:'⭐️';
visibility: visible;
display: block;
position: absolute;
}
/* Hide the icons for a favorited mention in notification stream. */
.activity-type-favorited_mention {
visibility: hidden;
}
/* Replace it with an emoji. */
.activity-type-favorited_mention:after {
content:'🔥';
visibility: visible;
display: block;
position: absolute;
}
/* Remove 'Likes' on Profile Page */
.ProfileNav-item--favorites .ProfileNav-label {
visibility: hidden;
}
/* replace it with 'Favorites' */
.ProfileNav-item--favorites .ProfileNav-label:after {
content:'Favorites';
visibility: visible;
margin-left:-30px
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment