Prevents a tab from being closed accidentally
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
📣 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.
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