Код:
<script language="JavaScript">
if( !document.getElementById("navprofile") )
{
    document.write("<style>")
    document.write(".post-content IMG{display:none !important}")
    document.write("</style>")
}
</script>

источник