From bc44985c9a308e57983fd55eb576ac956da5b1a8 Mon Sep 17 00:00:00 2001 From: Fred Lin Date: Tue, 2 Jan 2018 13:32:55 +0800 Subject: [PATCH] scope content scripts to github domain only and add permission to communicate to addon from github pages, fix #20 --- src/manifest.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/manifest.json b/src/manifest.json index 3cde7a9..786020c 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -5,7 +5,7 @@ "content_scripts": [ { - "matches": ["*://*/*"], + "matches": ["https://github.com/*"], "js": ["script/pageload/functions.js", "script/pageload/body.js", "script/pageload/callbacks.js"], "run_at": "document_end" } @@ -25,7 +25,8 @@ "permissions": [ "activeTab", "https://ajax.googleapis.com/", - "https://gitcoin.co/" + "https://gitcoin.co/", + "https://*.github.com/*" ], "background": {