From 75695f9d11411c156e8d0b98c37016b9ec36d096 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Wed, 24 Jun 2020 17:17:22 +0800 Subject: [PATCH] basic: send url list and original source url --- common_content_script.js | 9 +++++++-- manifest.json | 4 +++- popup.js | 12 ++++++++++++ 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/common_content_script.js b/common_content_script.js index 48bdf5b..95dc29d 100644 --- a/common_content_script.js +++ b/common_content_script.js @@ -8,10 +8,15 @@ chrome.extension.onRequest.addListener(function(request, sender, sendResponse) { let a = getElementByXpath("(//article[contains(@role,'article')])[1]//a[contains(@href,'/photo/')]//img/@src"); let arr = []; for (i=0; i { + console.log(data); + }); + } }); });