How to hide Events and admin bar on the profile page (WordPress)

<script type="text/javascript">
jQuery(document).ready(function($ ){
           $("#your-profile h3:first").remove();
           $("h3:contains('Events Made Easy')").hide().next('.form-table').remove();
           $(".show-admin-bar").remove();
});
</script>

You may also like...