closeTabByJS

closeTabByJS

javascript can close chrome tab through chrome extension

What is closeTabByJS?
closeTabByJS is a Chrome extension that enables the closing of Chrome tabs through JavaScript. It is specifically designed to work on localhost or 127.0.0.1 for local demo purposes. By using the provided function in JavaScript, you can now close Chrome tabs with ease.
Merlin
Stats
Users: 1
Version: 1.0.3 (Last updated: 2019-01-02)
Creation date: 2019-01-01
Risk impact: Low risk impact
Risk likelihood: Low risk likelihood
Manifest version: 2
Permissions:
  • activeTab
Size: 11.80K
Stats date:

Chrome-Stats Rank

Other platforms

Not available on Firefox
Not available on Edge
Want to check extension ranking and stats more quickly for other Chrome extensions? Install Chrome-Stats extension to view Chrome-Stats data as you browse the Chrome Web Store.
Chrome-Stats extension
Merlin
Summary

github link

Javacript can not close page in recent version chrome, because it's not safe. But we can close it with this extension installed.

warning: This extension can only work in http(s)://localhost or 127.0.0.1, to show some local demo.

function closeWindow () {
    var event = new Event('closeTabMessage');
    document.body.dispatchEvent(event);
};

Run this function in javascript, you can close chrome tab now.

Safety
Risk impact

closeTabByJS is relatively safe to use as it requires very minimum permissions.

Risk likelihood

closeTabByJS has earned a fairly good reputation and likely can be trusted.

Upgrade to see risk analysis details
Screenshots
Similar extensions

Here are some Chrome extensions that are similar to closeTabByJS: