Skip to content

Instantly share code, notes, and snippets.

@salcode
Last active May 26, 2017 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salcode/36df77c72c2e2be40686 to your computer and use it in GitHub Desktop.
Save salcode/36df77c72c2e2be40686 to your computer and use it in GitHub Desktop.
I find a lot of websites with wonky looking Gravatars on hover. I've written about it at http://salferrarello.com/round-gravatar-hovercard-problem/. The following code when pasted into the Google Chrome Developer Tools console, will trigger the hover state so you can modify the CSS.
(function() {
var gravCloneHtml;
jQuery('.grav-hashed').first().trigger('mouseenter');
gravCloneHtml = jQuery('.grav-clone-a')[0].outerHTML;
setTimeout( function() {
jQuery('.grofile').trigger('mouseleave');
}, 3000 );
setTimeout( function() {
jQuery('body').append( gravCloneHtml );
}, 4000 );
}) ();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment