I want to disable the hyperlink for a specific class part of Site Feeds in SharePoint 2013.
I`m using Jquery to do the same, but it is not working for me. Code for reference
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.3/jquery.min.js"></script>
<script type="text/javascript">
var location= $('.ms-microfeed-userName ms-textLarge ms-subtleLink').attr("href");
$(".ms-microfeed-userName ms-textLarge ms-subtleLink").removeAttr('href');
$('ul').addClass('expanded');
$('ul.expanded').fadeIn(300);
$(".ms-microfeed-userName ms-textLarge ms-subtleLink").attr("href", location);
</script>