title: How to automatically exit browser after youtube video has finished playing
body: <p>Is it possible to exit the browser ( firefox) automatically after a video  has finished playing ? Through some extensions / scripts ? </p>
  
  <p>I need this because I want to automate measuring of bandwidth used while a youtube video played in firefox.</p>