1

私はgmail.comのような特定のURLをブロックするChrome拡張機能を開発しようとしています。誰かがgmail.comにアクセスすると、そのWebサイトにアクセスするためのパスワードを入力するためにポップアップが表示されます。これにより、個人サイトへの不正アクセスが減少する可能性があります。

あなたが私に知らせることについて何か知っているなら、私はいくつかの拡張機能をグーグルで検索しました、そして、集中し続けるようなサイトをブロックする2つから3つの拡張機能があります。

4

1 に答える 1

1

The simplest way to do this is to inject a content script to all pages that should be 'protected' (you can set it up using "content_scripts"/"matches" setting in manifest.json). When script is injected and fired it should display the login dialog and handle the sign in process. You may use this code as a starting point for your extension.

ところで、あなたの拡張機能が、あなたが説明した方法で機能するものを実際に保護できるとは思いません。拡張機能は簡単に非アクティブ化/アンインストールできます。

于 2012-05-29T11:24:02.530 に答える