Prevents a tab from being closed accidentally

Latest Version

Version
1.3.0
Update
July 9, 2024
Size
44.7KiB
Developer
Category
Users
9,000+
Rating
3.57692 ★
Manifest Version
3
Web Store Status
Languages Support
English (United States)
See more
Permissions
ActiveTab
Storage
See more

Lock Tab Extension

Adds a padlock icon that allows toggling each tab's lock/unlocked state. When a locked tab is being closed, a confirmation dialog which allows preventing the tab from closing, is displayed.

📣 IMPORTANT: after locking, some interaction with the page is required for it to work. So you need to, for example, click anywhere on the page after locking to actually prevent the tab from being closed. This is how Chrome works.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Lock Tab", "description": "Prevents a tab from being closed accidentally", "version": "1.3.0", "author": "gabrielmaldi", "homepage_url": "https://github.com/gabrielmaldi/chrome-lock-tab", "manifest_version": 3, "permissions": [ "activeTab", "storage" ], "icons": { "128": "images/unlocked-light.png" }, "background": { "service_worker": "src/background.js" }, "content_scripts": [{ "matches": [""], "js": ["src/script.js"], "run_at": "document_start" }], "action": {}, "options_page": "src/options.html"}
Read more