【问题标题】:In Firefox, is there any way for an extension to remove an entry from history?在 Firefox 中,扩展程序有没有办法从历史记录中删除条目?
【发布时间】:2015-03-18 08:23:25
【问题描述】:

在 Firefox 中,我知道我可以通过使用内容脚本注入对 history.replaceState 的调用来更改页面的历史条目。但是,该页面的地址仍将在历史侧边栏中可见,并在真棒栏中作为建议提供。是否有任何方法可以让扩展程序也删除这些(与 Chrome SDK 中的 chrome.history 一样?)

【问题讨论】:

    标签: javascript firefox


    【解决方案1】:

    可以使用nsIBrowserHistoryremovePage函数

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-04
      • 2021-01-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多