Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
    • Other Browser Sites
    • Add-ons for Android
Log in
Preview of TabGuard

TabGuard by why7e

Add-on to prevent accidental tab closures. Automatic URL matching and toggle button to enable a confirmation prompt before a webpage is unloaded.

5 (1 reviews)5 (1 reviews)
1 User1 User
You’ll need Firefox to use this extension
Download Firefox and get the extension
Download file

Extension Metadata

Screenshots
Set URL matching rules using regular expressions. Any tab with a matching URL will be automatically locked.A locked tab will prompt for confirmation when attempting to close or navigate away from the current page.
About this extension
Features
  • 🔒 Automatically locks selected pages to prevent accidental closure
  • 🔄 Toggle lock/unlock for any webpage by clicking the extension icon
  • 🚫 Prompts for confirmation when attempting to close a locked tab
  • 📝 Configure automatic tab locking using regex patterns
  • 🌓 Supports both light and dark modes

Usage
  • Click the extension icon (🔒/🔓) to manually toggle the lock state for any tab
  • When attempting to close a locked tab, you'll be prompted for confirmation
  • Set up automatic tab locking rules in the settings page

Settings Page

To access the settings page in Firefox:
  1. Click the menu button (☰) in Firefox
  2. Select "Add-ons and themes"
  3. Find TabGuard in your extensions list
  4. Click the gear (⚙️) icon next to TabGuard
  5. Select "Extension Options" or "Preferences"

Managing URL Patterns

In the settings page, you can:
  • Add new URL patterns using regular expressions
  • View all your existing patterns
  • Delete patterns you no longer need

Examples of URL patterns:

youtube\.com/watch # Matches YouTube video pages
docs\.google\.com # Matches Google Docs pages
.*\.example\.com # Matches all subdomains of example.com

# Matches Autotask time entries
(https:\/\/)?ww6\.autotask\.net\/Mvc\/ServiceDesk\/TimeEntry\.mvc\/.*


The extension will automatically lock any tab whose URL matches one of your patterns.
Rated 5 by 1 reviewer
Sign in to rate this extension
There are no ratings yet

Star rating saved

5
1
4
0
3
0
2
0
1
0
Read 1 review
Permissions and dataLearn more

Required permissions:

  • Access browser tabs
  • Access your data for all websites
More information
Add-on Links
  • Homepage
  • Support site
  • Support Email
Version
1.0.0
Size
74.39 KB
Last updated
5 months ago (Mar 22, 2025)
Related Categories
  • Tabs
License
MIT License
Version History
  • See all versions
Tags
  • container
  • security
  • user scripts
Add to collection
Report this add-on
More extensions by why7e
  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

Go to Mozilla’s homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Browsers

  • Desktop
  • Mobile
  • Enterprise

Products

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version.