Skip to content

cti1650/chrome_extension_exsample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chrome_extension_exsample

はじめに

Chrome拡張機能の学習用に1つの題材を複数の実装方法で検証できるようにこのリポジトリを作成しました!

Chrome拡張機能 サンプル

要件

  • 類似するnpmパッケージを検索するための拡張機能

    簡単な仕様

    • npmパッケージ名をURLから取得しOpenbaseで検索

      https://www.npmjs.com/package/react-pdf
      https://www.npmjs.com/package/{パッケージ名}
    • githubリポジトリの名称をURLから取得しOpenbaseで検索

      https://github.com/wojtekmaj/react-pdf/releases
      https://github.com/wojtekmaj/{パッケージ名}/releases
    • Openbaseを開く(新規タブ・ポップアップ)

      https://openbase.com/search?q=%E6%A4%9C%E7%B4%A2
      https://openbase.com/search?q={パッケージ名}

    実行方法を決める

    • コンテキストメニュー(右クリック)から実行
    • アクションボタンから実行
    • GitHub, npmのページにボタンを埋め込む
    • アクションページに検索結果のiframeを表示

作成したサンプル

コンテキストメニューから実行 ( Context Menu )

アクションボタンから実行 ( Action Button )

GitHub, npmのページにボタンを埋め込む ( Content Script )

アクションページに検索結果のiframeを表示 ( Action Page )

アクションページにOpenbase検索窓を表示 ( Action Page + Next.js + Tailwind.css + Mantine )

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published