Close all Tabs and open Chrome/Newtab

0
No votes yet
Your rating: None

First closes all other tabs. Afterwards open Chrome/Newtab (or any URL you want), and subsequently closes the last tab.

Runs in:

all frames

Script:

var URL = 'chrome://newtab/';
MS.apis.builtin('close-other-tabs'); 
MS.apis.tabs.create({
	selected: false,
	url: URL
});
MS.apis.builtin('close-tab');

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <strike> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is to prevent automated spam submissions, you will not see this again after registration.