chrome.bookmarks.onChanged发生时如何跟踪旧网址?

问题描述

我正在尝试为Chromium和Firefox创建一个Webextension。在浏览器中编辑书签后,我可以通过chrome.bookmarks.onChanged()看到此更改。但是,我只得到更改的信息。但我同时需要更改发生之前的旧网址和更改之后的第二个网址。有什么办法可以在更改发生之前捕获旧的url?

我当前的代码如下:

chrome.bookmarks.onChanged.addListener(onChangedCheck);

function onChangedCheck(id,changeInfo) {
    console.log(id); // contains only the current id of the bookmark
    console.log(changeInfo); // contains only the changed titel and url of the bookmark
    // missing the old url,before the change,from where i can get this?
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)