Skip to content

Instantly share code, notes, and snippets.

@hexadeciman
Created May 20, 2015 15:22
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 hexadeciman/108f8bec77551539c724 to your computer and use it in GitHub Desktop.
Save hexadeciman/108f8bec77551539c724 to your computer and use it in GitHub Desktop.
hide twitter avatar
<script>
//hide twitter avatar
var hideTwitterAttempts = 0;
function hideTwitterBoxElements() {
setTimeout( function() {
if ( $('[id*=twitter]').length ) {
$('[id*=twitter]').each( function(){
var ibody = $(this).contents().find( 'body' );
ibody.find( '.avatar' ).css( 'height', 0 );
ibody.find( '.avatar' ).css( 'width', 0 );
ibody.find( '.var-chromeless .tweet' ).css('padding', '12px 2px 5px 0px');
});
}
hideTwitterAttempts++;
if ( hideTwitterAttempts < 10 ) {
hideTwitterBoxElements();
}
}, 1500);
}
hideTwitterBoxElements();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment