1 Star 0 Fork 10

LHB / manmanbuy

forked from zlong / manmanbuy 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
background.js 472 Bytes
一键复制 编辑 原始数据 按行查看 历史
zlong 提交于 2016-11-14 22:25 . 第一次提交代码
var pageActionTitle = chrome.i18n.getMessage("pageActionTitle");
chrome.tabs.onUpdated.addListener(function(a, b, c) {
chrome.pageAction.setTitle({
tabId: a,
title: pageActionTitle + c.url
}), chrome.pageAction.setPopup({
tabId: a,
popup: "pageaction.html?text=" + encodeURIComponent(c.url)
}), chrome.pageAction.show(a)
}), chrome.pageAction.onClicked.addListener(function(a) {
chrome.runtime.sendMessage({
theTextToQRCode: a.url,
type: "location"
})
});
JavaScript
1
https://gitee.com/DaHBLiu/manmanbuy.git
git@gitee.com:DaHBLiu/manmanbuy.git
DaHBLiu
manmanbuy
manmanbuy
master

搜索帮助