How can Remove or Hide “My Newsfeed” and “My Profile” Link on Top Ribbon in My Site in SharePoint 2010

 Add below script in <head> .... </head> section in master page :
 <script type="text/javascript" src="http://demo.haacked.com/hide-anchor/lib/jquery-1.3.2.min.js">
 </script>
  <script type="text/javascript">
   $(function() {
   var $spans = $(".menu-horizontal span");
   var val = "My Content";
   if (val) {
   //alert(val);
   $spans.filter(':contains(' + val + ')').show();
   $spans.filter(':not(:contains(' + val + '))').hide();
   } else {
   $spans.show();
   //alert("m here");
   }
   });
  </script>

Leave a comment