title: Script to close the current tab in Chrome
body: <p>I want to make a script that among other things, will close the current tab, I found these: <a href="https://stackoverflow.com/questions/2076299/how-to-close-current-tab-in-a-browser-window">How to close current tab in a browser window?</a>,  <a href="https://stackoverflow.com/questions/14373625/close-current-tab">Close Current Tab</a>, but all of the answers there are obsolete and don't work in Chrome 44 (latest). </p>
  
  <p>Is it really impossible to do? Maybe there's another way that doesn't involve javascript or greasemonkey to do it ?</p>
  
  <p>Just to make sure I'm not doing something wrong with the syntax (I'm a total beginner in javascript), this is an example test code I have in tampermonkey (it should close youtube tabs when opening them):</p>
  
  <pre><code>// ==UserScript==
  // @name         My Fancy New Userscript
  // @namespace    http://your.homepage/
  // @version      0.1
  // @description  enter something useful
  // @author       You
  // @grant        none
  // @include       http://*.youtube.com/*
  // @include       http://youtube.com/*
  // @include       https://*.youtube.com/*
  // @include       https://youtube.com/*
  // ==/UserScript==
  
  window.close();
  </code></pre>