From 3ff6a41be8e25d88ffd51623d5ac041e99c9d233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E9=B9=8F?= <64hp@163.com> Date: Wed, 3 Apr 2019 10:15:31 +0800 Subject: [PATCH] update --- .../.idea/full-chrome-plugin-demo.iml | 12 + full-chrome-plugin-demo/.idea/modules.xml | 8 + .../.idea/watcherTasks.xml | 4 + full-chrome-plugin-demo/.idea/workspace.xml | 460 ++++++++++++++++++ full-chrome-plugin-demo/js/background.js | 35 +- full-chrome-plugin-demo/js/content-script.js | 88 ++-- full-chrome-plugin-demo/js/devtools.js | 2 +- full-chrome-plugin-demo/js/inject.js | 3 + full-chrome-plugin-demo/js/popup.js | 44 +- 9 files changed, 589 insertions(+), 67 deletions(-) create mode 100644 full-chrome-plugin-demo/.idea/full-chrome-plugin-demo.iml create mode 100644 full-chrome-plugin-demo/.idea/modules.xml create mode 100644 full-chrome-plugin-demo/.idea/watcherTasks.xml create mode 100644 full-chrome-plugin-demo/.idea/workspace.xml diff --git a/full-chrome-plugin-demo/.idea/full-chrome-plugin-demo.iml b/full-chrome-plugin-demo/.idea/full-chrome-plugin-demo.iml new file mode 100644 index 0000000..24643cc --- /dev/null +++ b/full-chrome-plugin-demo/.idea/full-chrome-plugin-demo.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/full-chrome-plugin-demo/.idea/modules.xml b/full-chrome-plugin-demo/.idea/modules.xml new file mode 100644 index 0000000..cf1a145 --- /dev/null +++ b/full-chrome-plugin-demo/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/full-chrome-plugin-demo/.idea/watcherTasks.xml b/full-chrome-plugin-demo/.idea/watcherTasks.xml new file mode 100644 index 0000000..9338ba6 --- /dev/null +++ b/full-chrome-plugin-demo/.idea/watcherTasks.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/full-chrome-plugin-demo/.idea/workspace.xml b/full-chrome-plugin-demo/.idea/workspace.xml new file mode 100644 index 0000000..551a193 --- /dev/null +++ b/full-chrome-plugin-demo/.idea/workspace.xml @@ -0,0 +1,460 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sendMessage + chrome.tabs.sendMessage + chrome.tabs.executeScript + permissions + testBackground + open_background + _window + custom_window_size + getCurrentTabId + 你好,我是popup + 我是后台,我已收到你的消息 + executeScriptToCurrentTab + chrome.runtime.onMessage.addListener + sendMessageToContentScript + my_custom_css + highlight_tab + custom.css + injectCustomJs + myCustomEvent + myCustomEventDiv + initCustomEventListen + my_custom_log + sendMessageToContentScriptByEvent + sendMessageToContentScriptByPostMessage + 收到来自content-script的消息 + custom + myconsole + sendMessageToBackground + invokeContentScript + postMessage + + + + + + + + + true + + false + true + true + + + true + DEFINITION_ORDER + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +