Created
May 20, 2015 15:22
-
-
Save hexadeciman/108f8bec77551539c724 to your computer and use it in GitHub Desktop.
hide twitter avatar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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