Greasy Fork 还支持 简体中文。

Close useless tabs in 163 mail

Close useless tabs

Fra og med 15.08.2019. Se den nyeste version.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name          Close useless tabs in 163 mail
// @namespace     https://github.com/zklhp
// @icon          https://mail.163.com/favicon.ico
// @version       1.0.0
// @description   Close useless tabs
// @homepageURL   https://gist.github.com/zklhp/c1a358f026358786bef58b49f65d8333
// @author        Chris Zheng <https://chriszheng.science/>
// @grant         unsafeWindow
// @match         *://mail.163.com/*
// ==/UserScript==

/*jshint esversion: 6 */
(() => {
  unsafeWindow.$('a#_mail_link_0_7').click();
  unsafeWindow.$('a#_mail_link_1_12').click();
})();