如何跟踪当前标签到新标签的点击次数?

时间:2018-03-13 11:00:34

标签: google-chrome-extension

我需要一些帮助。

当我点击任何菜单项时,我需要跟踪当前标签中的点击次数,然后在新标签上提取当前用户的Cookie。现在它从localStorage中提取最新用户。

你能指引我朝正确的方向前进吗?我试着理解行动的算法。

我想我需要在onBeforeSendHeaders中使用currentTabId。我是对的吗?

这是我的代码https://jsbin.com/cetezesami/edit?html,css,js,output

enter code here

0 个答案:

没有答案