Firefox 用のサイトリンクを [タイトル](リンク) 形式でコピーするアドオンを作りたい。
Codex にやらせる
ローカルに作業ディレクトリを作って、あとは要望を伝えて適当に作った。
完成時のディレクトリ構成
MDLinkCopy/
manifest.json
background.js
content/
toast.js
options/
options.html
options.css
options.js
icons/
chatgpt-chain-16.png
chatgpt-chain-32.png
chatgpt-chain-48.png
chatgpt-chain-128.png
README.md
ホットキーの設定
manifest.jsonにcopy-markdown-linkコマンドを追加background.jsにbrowser.commands.onCommandを追加
Firefox で使ってみる
作ったアドオンを使ってみる。
- Firefox で
about:debugging#/runtime/this-firefoxを開く - 一時的なアドオンを読み込む… より
manifest.jsonを読み込む - ツールバーにアドオンを配置する
- 使ってみる
使う
おk。いい感じ。
リリースしてみる?
- AMO Developer Hub にログイン
- 新しい拡張機能を提出
web-ext buildで作った.zipをアップロード- 名前、概要、説明、カテゴリ、スクリーンショットを入力
- データ収集なしとして申告
- レビュー/公開へ進める
本名などは公開しなくても大丈夫そう。
Developer 登録
AMO Developer Hub から登録。
新しいアドオンを登録
アドオンは .zip .xpi .crx のいずれかの拡張子を持つファイルにしてください
まずは配布用の .zip をつくる。
アドオンの説明
- 名前
- 概要
- 説明
- このアドオンは実験的です
- このアドオンは、課金、有償のサービスもしくはソフトウェア、あるいは追加のハードウェアを必要とします。
- アドオンのカテゴリ 3つ
- サポートメールアドレス
- サポートサイト
- ライセンスの選択
- このアドオンにはプライバシーポリシーがあります
審査のメモには次のように記載
No build step is required. This is a vanilla JavaScript/HTML/CSS WebExtension, and the submitted ZIP contains the exact files used by the extension. There is no bundling, minification, obfuscation, remote code, or external dependency.
The extension uses the active tab title and URL only after a user action, writes a Markdown link to the clipboard, and stores settings locally with browser.storage.local. It does not collect or transmit user data.
ソースコードの提出
アップロードした拡張ファイルの中身だけでは、人間が読めない・元のコードを再現できない場合に必要らしい。
不要のはず。
審査へ提出
提出できた。審査があるらしい。待ちます。
https://addons.mozilla.org/ja/developers/addon/mdlinkcopy/
迂闊に提出してみたわけだが。どうかねぇ。
審査通った
2026-08-26に提出し、2026-08-29に審査通った。
公開ページ。