Installation:

  1. Execute Powershell commands in SharePoint 2013 Management Shell
    • Add-SPSolution c:\bin\Ordina.SharePoint.RemoveShareFollow.wsp
    • Install-SPSolution –Identity Ordina.SharePoint.RemoveShareFollow.wsp -GACDeployment
  2. Activate the site-collection feature 'MasterPage Feature'
  3. Activate the site feature 'Remove Share Follow Feature' for each site where you want to remove she follow and share button

Found the JavaScript file at: http://www.estruyf.be/blog/hiding-the-social-actions-follow-share-from-the-document-libraries-in-sharepoint-2013/