CodeMirror PRIMARY Bridge Firefox

CodeMirror PRIMARY Bridge

Restores middle-click paste from CodeMirror editors (GitHub Gist, codemirror.net…) on Linux/BSD by forwarding selections to the X11/Wayland PRIMARY buffer. Per-domain allowlist, off by default. Requires a companion native helper.

Features & Capabilities

On Linux/BSD, CodeMirror-based editors (GitHub Gist, codemirror.net, and others) don't propagate text selections to the X11/Wayland PRIMARY buffer. The result: middle-click paste from those editors silently does nothing. This extension restores that workflow.

A content script watches the selection inside CodeMirror editors on allowlisted sites. When the selection changes, it sends the text to a small Python "native messaging host" running outside the browser, which writes it to PRIMARY via xsel, xclip, or wl-copy.

  1. The extension itself (this page).
  2. A small Python helper, installed separately by running install.sh from the source tree. WebExtension APIs cannot reach clipboard tools directly — the helper is required and AMO cannot install it for you.
Full instructions, including the source repository, are at https://gitlab.com/nicolas.hainaux/cm_primary.

Off everywhere by default. The extension only forwards selections on hostnames you explicitly add to the allowlist in the options page — no allowlist entry, no message to the helper, no write to PRIMARY.

This mirrors the conservative choice Firefox made after CVE-2023-6208, which was patched by dropping all JavaScript-driven PRIMARY updates. This extension reopens that path only on sites you've explicitly trusted.

No telemetry, no analytics, no remote servers. Selections are only forwarded to your local PRIMARY buffer.

Linux X11 (tested with xsel). BSD and Wayland support is implemented but untested — feedback welcome.

User Growth & Download Statistics

Manifest V3 Add-on
By:
Nicolas Hainaux
Daily users:
3
Rating:
5.00
(1)
Version:
1.0.0 Last updated: 2026-06-07
Version code:
6291452
Creation date:
2026-06-04
Risk:
Moderate risk impact High risk likelihood
Permissions:
Host permissions:
  • <all_urls>
Content scripts matches:
  • <all_urls>
Size:
18.50KB
Email:
nh*****@posteo.net
URLs:
Website
Full description:
See detailed description
Source:
Firefox Add-ons Store
Data ingested on:
2026-08-03
Compare stats and ranking:

Contact the developer

Chrome-Stats does not own this Firefox add-on. Please use these information below to contact the Firefox add-on developer.
Developed by:
Nicolas Hainaux
Firefox Add-ons Store
https://addons.mozilla.org/firefox/addon/codemirror-primary-bridge/
Email:
nh*****@posteo.net
Website:
https://gitlab.com/nicolas.hainaux/cm_primary/-/issues

Is CodeMirror PRIMARY Bridge Safe?

Risk impact
Risk impact measures the level of extra permissions an extension has access to. A low risk impact extension cannot do much harms, whereas a high risk impact extension can do a lot of damage like stealing your password, bypassing your security settings, and accessing your personal data. High risk impact extensions are not necessarily malicious. However, if they do turn malicious, they can be very harmful.

CodeMirror PRIMARY Bridge requires a few sensitive permissions. Exercise caution before installing.

Risk impact analysis details
  • Critical Allows access to all websites, posing a significant security risk as it can monitor and modify data from any visited site.
  • High ******* ******* **** *** ****** ***** *** ***** ** ******* **** ********* ********* ** * *********** *****
  • Medium *********** ************* ******* ********** *** ****** ************* ******* *** **** ** ******* **********
Risk likelihood
Risk likelihood measures the probability that a Firefox add-on may turn malicious. This is determined by the publisher and the Firefox add-on reputation on Firefox Add-ons Store, the amount of time the Firefox add-on has been around, and other signals about the Firefox add-on. Our algorithms are not perfect, and are subject to change as we discover new ways to detect malicious extensions. We recommend that you always exercise caution when installing a Firefox add-on.

CodeMirror PRIMARY Bridge is recently added, and hasn't been around long enough for us to gather enough data to accurately assess its risk level.

Risk likelihood analysis details
  • High This extension has low user count. Unpopular extensions may not be stable or safe.
  • Medium **** ********* *** ******* ** *** **** * ******* *** ******* *** *** ** ****** ** *****
  • Medium **** ********* *** ***** ** *** **** * ******* *** ********** *** *** ** ****** ** *****
  • Good **** ********* *** **** **** *******
Extension Guard
Extension Guard

Discover every extension in use, analyze risks, and enforce blocking policies with Extension Guard

Secure Your Browser
Upgrade to see full risk analysis details

Best CodeMirror PRIMARY Bridge Alternatives

Here are some Firefox add-ons that are similar to CodeMirror PRIMARY Bridge: