title: How do I run JavaScript code in salesforce standard pages in latest SFDC version?
body: <p>My requirement is that I need to execute some javascript code in all standard SFDC pages so that I can capture some information and log it into a server. There are ways before to embed a HTML/VF page in side bar and messages &amp; alerts 
  components. But nothing seems to be working as I have tested all the approaches in latest salesforce dev environment.</p>
  
  <p>I know there is already a post on this but I am asking again because the post is quite old and I would like to know if there is any feasibility to achieve in new SFDC version. If writing custom visual force page for every standard page, then it is a difficult thing to do and I would like to avoid it with a easiest solution.</p>
  
  <p>Can any one please suggest a solution.</p>
  
  <p>Old post: <a href="https://salesforce.stackexchange.com/questions/38918/end-of-javascript-sidebar-workarounds">https://salesforce.stackexchange.com/questions/38918/end-of-javascript-sidebar-workarounds</a> </p>