# Force New Tab

> Opens JavaScript driven buttons in new tabs like standard html links.

Canonical page: [https://chrome-stats.com/d/force-new-tab](https://chrome-stats.com/d/force-new-tab)

## Overview

- **ID:** `force-new-tab`
- **Platform:** Firefox
- **Type:** Firefox add-on
- **Status:** Available
- **Publisher:** SurgWaterfox
- **Category:** tabs
- **Daily users:** 17
- **Weekly downloads:** 13
- **Rating:** 4.00 / 5 (1 ratings)
- **Version:** 1.3.0
- **Last updated:** 2026-04-21
- **First published:** 2026-04-18
- **Size:** 12 KB
- **Data as of:** 2026-09-09
- **Store listing:** [Firefox Add-ons Store](https://addons.mozilla.org/firefox/addon/force-new-tab/)

## Description

Force New Tab

A Firefox extension that forces middle-click on any element to open in a new tab — including JavaScript-driven buttons, cards, and links that normally ignore middle click.

The Problem

Modern websites are often built as Single Page Applications (SPAs) using frameworks like React, Vue, and Angular. Navigation on these sites is handled entirely by JavaScript rather than standard &lt;a href&gt; links. As a result, middle-clicking elements like cards, buttons, and tiles either does nothing or navigates the current tab instead of opening a new one. Force New Tab solves this transparently, without breaking normal browser behaviour.

How It Works

When you middle-click an element, the extension works through a chain of fallbacks in order, stopping as soon as it finds a URL to open:

<code>Real links are ignored — if the clicked element is a genuine &lt;a href&gt; link, the extension does nothing and lets the browser handle it natively. (Opens in new tab by default.)

data-* attribute scan — checks the clicked element and its ancestors for common URL attributes like data-href, data-url, data-link, data-navigate etc.

Child anchor search — searches inside the card container for any &lt;a href&gt; link. Useful for sites like Spotify where the image and text are separate elements inside the same card, but only the text has a real link.

Page world hooks — intercepts standard JavaScript navigation methods:
    window.open
    history.pushState
    history.replaceState
    location.href
    location.assign
    location.replace

Click replay — if nothing is captured after 500ms, the extension re-fires mousedown, mouseup, and click events on the element to trigger its JavaScript handler, then intercepts the resulting navigation.

URL polling — as a last resort, monitors window.location.href for changes after the click replay fires. If the URL changes, the new URL is opened in a new tab and the current tab is snapped back to its original URL.
</code>

Compatibility

The extension is designed to work on as many sites as possible. Tested on:
Site    Status  Method used
YouTube     ✅ Works     Page world hooks
Reddit          ✅ Works     Page world hooks
Twitter / X     ✅ Works     Page world hooks
Spotify     ✅ Works     Child anchor search
GitHub  ✅ Works     Real links / page world hooks
Twitch  ✅ Works     Page world hooks
Pinterest (cards)   ✅ Works     Child anchor search
Pinterest (filter buttons)  ⚠️ Partial  URL polling — current tab also navigates, use back button to restore

Known Limitations

<code>Strict CSP sites — some sites (like Pinterest) block page-world script injection via Content Security Policy. The extension degrades gracefully, falling back to DOM-based methods that don't require page-world access.
Modal/dialog triggers — buttons that open dialogs rather than navigating to a new page have no URL to open. The extension correctly does nothing in these cases.
Internal framework routers — some sites use heavily customised internal routers (like Spotify's) that bypass all standard navigation methods. The child anchor search and click replay fallbacks handle most of these cases.
</code>

Permissions

The extension requests the following permissions:

<code>tabs — required to open URLs in new background tabs
</code>

No data is collected, stored, or transmitted. The extension has no network access and makes no external requests. All processing happens locally in your browser.

Version History
v1.3.0

<code>Added URL polling fallback for sites that bypass all JavaScript hooks
Added child anchor search for Spotify-style card components
Added history.replaceState interception
</code>

v1.2.0

<code>Added location.href, location.assign, and location.replace interception
Added click replay fallback
</code>

v1.1.0

<code>window.open, history.pushState interception
Real link passthrough
data-* attribute fallback
</code>

v1.0.0

<code>Initial public release
</code>

License
MIT

## Rankings

- #26,344 — Overall
- #26 — force
- #131 — javascript
- #248 — pinterest

## Permissions and access

### Permissions

- `tabs`

### Content script matches

- `<all_urls>`

## Safety

- **Risk impact:** High risk impact
- **Risk likelihood:** Moderate risk likelihood

### Analysis details

- Grants access to browser tabs, which can be used to track user browsing habits and history, presenting a privacy concern.
- This extension has low user count. Unpopular extensions may not be stable or safe.

> Some risk analysis details are omitted from this free response. [Upgrade to view the full analysis](https://chrome-stats.com/pricing).

## Similar extensions and apps

- [Force New Tab on Middle Click](https://chrome-stats.com/d/force-new-tab-on-middle-click) — 12 users
- [Force Ctrl+Click to New Tab](https://chrome-stats.com/d/force-ctrl-click-to-new-tab) — 25 users, 4.00 / 5
- [Open Links in New Tab](https://chrome-stats.com/d/open-links-in-new-tab) — 129 users, 3.71 / 5
- [Hold to New Tab](https://chrome-stats.com/d/hold-to-new-tab) — 1 users
- [FF Store Middle Click New Tab](https://chrome-stats.com/d/ff-store-middle-click-new-tab) — 2 users, 5.00 / 5
- [Pro DoubleClick](https://chrome-stats.com/d/pro-doubleclick) — 1 users
- [Tap To Tab](https://chrome-stats.com/d/tap-to-tab) — 776 users, 4.28 / 5
- [New Tab (shows your homepage)](https://chrome-stats.com/d/new-tab-shows-your-homepage) — 8 users, 5.00 / 5
- [Container Forcer](https://chrome-stats.com/d/container-forcer) — 1 users
- [Right Links WE](https://chrome-stats.com/d/right-links) — 1,119 users, 4.85 / 5
- [Fullscreen Anything](https://chrome-stats.com/d/fullscreenanything) — 8 users
- [New Tabber](https://chrome-stats.com/d/new-tabber) — 1 users, 5.00 / 5

---

Source: [Chrome-Stats](https://chrome-stats.com/d/force-new-tab)
