0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Chrome拡張機能開発で新規タブの書き換え時に困った話

Posted at

はじめに

こんにちは、Never3924です。
タイトルまんまで、困りました。

manifest.jsonmatches<all_urls>にしても新規タブだと動作しないんですね、コレ。
情報も少ないし。
まぁ解決したのでここに書いておきます。

本題

じゃあ解決していきましょう。
簡単です。
manifest.jsonに以下のオブジェクトを追加します。

manifest.json
{
    "chrome_url_overrides": {
        "newtab": "index.html"
    }
}

ここに書いてある"newtab"を好きなhtmlファイル名に変えて、そのhtmlを編集すればok。
たぶん他にも置き換えとかできそうな感じがしますね。

調べてみたところ、ブックマークとか置き換えできるようですね。

終わりに

すごく短い記事でしたが、読んでくれてありがとうございました。
では、さようなら~。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?