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

Close Tab by Regexp by eridem

Close tabs automatically with regular expressions. Any tab whose URL matches one of your patterns closes as soon as it opens or navigates there. Rules stay on your device: no tracking and no network requests.

0 (0 reviews)0 (0 reviews)
Download Firefox and get the extension
Download file

Extension Metadata

About this extension
Close Tab by Regexp keeps unwanted pages from staying open. Write a regular expression, and any tab whose URL matches it closes automatically, both when it opens and when an open tab navigates there. Every pattern lives in one simple rules table.

WHAT IT DOES
  • Closes a matching tab the moment it opens, and when an already-open tab navigates to a matching URL.
  • Add, enable, disable, and delete rules from one table.
  • Turn a rule off temporarily instead of deleting it.
  • Per-rule regular-expression flags, such as i for case-insensitive matching.
  • Invalid patterns are rejected in the editor, so a typo can never take effect.
  • Light and dark themes, following your browser.

EXAMPLES
  • Block a whole site: ^https?://(www.)?example.com/ with flag i
  • Block short-form video: youtube.com/shorts/ with flag i
  • Close insecure pages: ^http://

CAREFUL: a broad pattern such as a single dot matches every URL and closes every tab you open. Test narrow patterns first.

PRIVACY

Your rules are stored on your device using Firefox's built-in extension storage. The extension makes no network requests at all, collects nothing, and sends nothing anywhere. Tab URLs are tested against your rules in memory and are never logged or stored.

Open source (MIT): https://github.com/eridem/firefox-extension-close-tab-by-regexp
Rated 0 by 0 reviewers
Log in to rate this extension
There are no ratings yet

Star rating saved

5
0
4
0
3
0
2
0
1
0
No reviews yet
Permissions and data

Required permissions:

  • Access browser tabs

Data collection:

  • The developer says this extension doesn't require data collection.
Learn more
More information
Add-on Links
  • Homepage
  • Support site
  • Copy add-on ID
Version
1.0.0
Size
20.3 KB
Last updated
18 days ago (Sep 1, 2026)
Related Categories
  • Privacy & Security
  • Tabs
License
MIT License
Privacy Policy
Read the privacy policy for this add-on
Version History
  • See all versions
Add to collection
Report this add-on
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

Download

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

Latest Builds

  • Nightly
  • Beta

Firefox for Business

  • Enterprise

Community

  • Connect
  • Contribute
  • Developer

Follow

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • 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.