Skip to content
This repository has been archived by the owner on May 15, 2018. It is now read-only.

アクセス対象のドメインを設定可能にする #1

Open
moyashipan opened this issue Apr 12, 2013 · 0 comments
Open

アクセス対象のドメインを設定可能にする #1

moyashipan opened this issue Apr 12, 2013 · 0 comments

Comments

@moyashipan
Copy link
Owner

content scriptに書かれている以下の配列をconfig側に持たせて、ユーザーが設定できる画面を用意しておくと汎用性高まる。

    var patterns = [
        'http://www.pixiv.net/',
        'http://www.pixiv.com/',
        'http://ja.worldcosplay.net/'
    ];

background scriptからcontent scriptに対するsendMessage()時にpatternsも渡すようにしたら良さげ。

    chrome.tabs.sendMessage(details.tabId, {details:details}, function(response){
    });
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant