I want to make a script that among other things, will close the current tab, I found these: How to close current tab in a browser window?, Close Current Tab, but all of the answers there are obsolete and don't work in Chrome 44 (latest).
Is it really impossible to do? Maybe there's another way that doesn't involve javascript or greasemonkey to do it ?
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):
// ==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();