1 Star 3 Fork 2

蓝田 / xpath-selector

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
background.js 568 Bytes
一键复制 编辑 原始数据 按行查看 历史
v_vhhtpeng 提交于 2023-02-08 22:15 . 去除iframe
/**
* @author lantian39999@163.com
*/
const local = location.origin;
chrome.action.onClicked.addListener(function (tab) {
chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
let data = {};
data.local = local;
data.cmd = "clickPupop";
url = this.serviceWorker.scriptURL.replace("/background.js", "");
data.url = url;
console.log("back收到开关");
chrome.tabs.sendMessage(tabs[0].id, { msg: data }, function (response) {
console.log(response);
});
});
});
JavaScript
1
https://gitee.com/lantian007/xpath-selector.git
git@gitee.com:lantian007/xpath-selector.git
lantian007
xpath-selector
xpath-selector
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891