old_contents: const getGmailLocationToInject = () => {
    // where we want to put the search quick links
    // this has be be defined after the page loads and becomes ready
    return document.querySelector('div.wT')
  }
  
  const gmailAccountName = () =>
    document
      .querySelector('a[class="gb_x gb_Da gb_f"]')
      .attributes['aria-label'].nodeValue.match(/\(([^)]+)\)/)[1]
  
  //inside gmail controls container - contains labels such as inbox/starred/drafts/etc
  const labelControlsContainer = () =>
    document.getElementsByClassName('ajl aib aZ6')[0]
  
  const widgetMainPanel = () => document.querySelector('div.akc.aZ6')
  
  const widgetInsidePanel = () => document.querySelector('div.T0.pp.saH2Ef')
  
  const gmailSideBar = () => document.querySelector('div.nH.oy8Mbf.nn.aeN')
  
  const gmailHoverSideBar = () =>
    document.querySelector('div.nH.oy8Mbf.nn.aeN.bhZ.bym')
  
  const quickLinksContainer = () =>
    document.querySelector('#gmailQuickLinksContainer')
  
  export {
    gmailSideBar,
    gmailHoverSideBar,
    getGmailLocationToInject,
    gmailAccountName,
    widgetInsidePanel,
    labelControlsContainer,
    quickLinksContainer
  }
  
new_contents: const getGmailLocationToInject = () => {
    // where we want to put the search quick links
    // this has be be defined after the page loads and becomes ready
    return document.querySelector('div.wT')
  }
  
  const gmailAccountName = () =>
    document
      .querySelector('a[class="gb_x gb_Ca gb_f"]')
      .attributes['aria-label'].nodeValue.match(/\(([^)]+)\)/)[1]
  
  //inside gmail controls container - contains labels such as inbox/starred/drafts/etc
  const labelControlsContainer = () =>
    document.getElementsByClassName('ajl aib aZ6')[0]
  
  const widgetMainPanel = () => document.querySelector('div.akc.aZ6')
  
  const widgetInsidePanel = () => document.querySelector('div.T0.pp.saH2Ef')
  
  const gmailSideBar = () => document.querySelector('div.nH.oy8Mbf.nn.aeN')
  
  const gmailHoverSideBar = () =>
    document.querySelector('div.nH.oy8Mbf.nn.aeN.bhZ.bym')
  
  const quickLinksContainer = () =>
    document.querySelector('#gmailQuickLinksContainer')
  
  export {
    gmailSideBar,
    gmailHoverSideBar,
    getGmailLocationToInject,
    gmailAccountName,
    widgetInsidePanel,
    labelControlsContainer,
    quickLinksContainer
  }
  
subject: update styles due to gmail changes (05/16/19)