Ставить в HTML-низ.

<script language="javascript">
if( !document.getelementbyid("navprofile") )
{
    document.write("<style>")
    document.write(".post-content img{display:none !important}")
    document.write("</style>")
}
</script>