Complementos do Firefox
  • Extensões
  • Temas
    • para o Firefox
    • Dicionários e pacotes de idiomas
    • Outros sites de navegadores
    • Complementos para Android
Iniciar sessão
Pré-visualização de CodeMirror PRIMARY Bridge

CodeMirror PRIMARY Bridge por Nicolas Hainaux

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.

0 (0 reviews)0 (0 reviews)
Transferir o Firefox e obter a extensão
Transferir ficheiro

Metadados da extensão

Acerca desta extensão
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.

How it works

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.

Two-part install
  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.

Security model

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.

Privacy

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

Supported platforms

Linux X11 (tested with xsel). BSD and Wayland support is implemented but untested — feedback welcome.
Rated 0 by 0 reviewers
Iniciar sessão para avaliar esta extensão
Não existem avaliações ainda

Avaliação de estrelas guardada

5
0
4
0
3
0
2
0
1
0
Ainda sem análises
Permissions and data

Permissões necessárias:

  • Trocar mensagens com programas que não o Firefox
  • Aceder aos seus dados para todos os sites

Permissões opcionais:

  • Aceder aos seus dados para todos os sites

Data collection:

  • The developer says this extension doesn't require data collection.
Saber mais
Mais informação
Ligações do complemento
  • Site de apoio
  • Email de apoio
  • Copy add-on ID
Versão
1.0.0
Tamanho
18,5 KB
Última atualização
há 11 dias (4 de jun de 2026)
Categorias relacionadas
  • Desenvolvimento da web
Licença
MIT License
Histórico de versões
  • Ver todas as versões
Adicionar à coleção
Reportar este complemento
Ir para a página inicial da Mozilla

Complementos

  • Acerca
  • Blogue de complementos do Firefox
  • Workshop de extensões
  • Central do programador
  • Políticas de programador
  • Blogue da comunidade
  • Fórum
  • Reportar um erro
  • Guia de análise

Navegadores

  • Desktop
  • Mobile
  • Enterprise

Produtos

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacidade
  • Cookies
  • Informação legal

Exceto onde anotado o contrário, o conteúdo neste site está licenciado sob a licença Creative Commons Atribuição-CompartilhaIgual v3.0 ou qualquer versão mais recente.