Qiita および Qiita:Team の通知をタブ上の Favicon で確認できる Chrome 機能拡張を作りました。 リポジトリはこちら 技術的な話 background.js で qiita の notification API の通信を監視し、Request があれば Favicon を更新するようになっています。 Event Page にしたかったけど、chrome.webRequest が Event Page に対応していなかった。 Favicon の更新には、favico.js を使っています。 よかったら使ってみてください。 Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back
ちょっと前(厳密には2012年7月4日?)に Chrome Web Store Team から以下のようなメールが届きました。 Manifest_Version 1: Manifest Version 1 has been deprecated since Chrome 18, and when Chrome 21 hits stable in mid-August the Chrome Web Store will no longer accept new items with manifest_version 1. Converting to manifest_version 2 should be very simple for the majority of developers, and we encourage all developers to update their ex
お断り (2022-12-13 追記) この記事はマニフェストのバージョンが 2 の時点で作成したものですが、マニフェストの最新バージョンは 3 であり、Chrome Web Store においてはバージョン 2 の拡張機能が すでに受け付けられない状態 です。 それでもなおこの記事を参照される場合は、公式の マイグレーションガイド も合わせてご確認いただければと思います。 Overview https://developer.chrome.com/extensions/manifest についての自分用おぼえがきです。 マニフェストファイルの書き方にフォーカスしていますので、個々の用語の説明などは端折ったりしています。 記載が必須の項目 以下の項目は、マニフェストファイルに必須です。 manifest_version マニフェストファイル自身のバージョンです。 現在のバージョンは 2 で
Extensions are event based programs used to modify or enhance the Chrome browsing experience. Events are browser triggers, such as navigating to a new page, removing a bookmark, or closing a tab. Extensions monitor these events in their background script, then react with specified instructions. A background page is loaded when it is needed, and unloaded when it goes idle. Some examples of events i
オガリア開発チームの浜田です。 体重の増加が止まりません。 食べなくても太り続けるスタンド攻撃を受けています。 さて、前回に引き続きChrome拡張機能のお話しです。 開発をしていると”このアプリの中身どうなってんねん”と 思うことがありますよね? Chrome拡張機能では、イベントページでの通信処理が見えなかったりするので ブラックボックスのようですが、所詮HTML+javascript。丸見えにできます。 ではまずmanifest.jsonから覗いてみましょう!! 上記画像は、Chromeの設定画面の拡張機能タブですね。 その中で、アプリの項目のうち「ID: ○○○」と書かれている部分にご注目下さい。 このIDはストアに公開されているアプリ固有の値となっております。 ではこのIDの○○○部分をコピーし、次へ進みましょう。 先ほどコピーしたIDを 「chrome-extension://
Because content scripts run in the context of a web page, not the extension that runs them, they often need ways to communicate with the rest of the extension. For example, an RSS reader extension might use content scripts to detect the presence of an RSS feed on a page, then notify the service worker to display an action icon for that page. This communication uses message passing, which allows bo
これからChrome拡張を作る方には是非知っておいて欲しい機能、Event pages についての話です。 Event pages は、作成したChrome拡張によっては、必ずしも使用できるわけではありませんが、もし可能なら積極的に使用してほしいと思います。 公式ドキュメントでも、Background pages のページ冒頭には、以下の様な注意書きがなされています。 Caution: Consider using event pages instead. Learn more. via: Background Pages - Google Chrome なぜ Event pages なのか 理由を詳しく説明すると、 Background pages を使用している拡張は、Chrome起動時にプロセスが起動され、以降Chromeが終了するまで生き続けます。 よって、例え Backgroun
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く