accessing history in a firefox addon

前端 未结 1 1035
野的像风
野的像风 2021-02-10 15:34

I\'m working on a firefox addon, using the addon builder. I want to periodically scan the browser\'s history.. the entire history. I\'m looking for functionality like chrome\'s

相关标签:
1条回答
  • 2021-02-10 16:26

    You'll need to access the xpcom service nsIBrowserHistory, here's some example code that works with the SDK:

    https://builder.addons.mozilla.org/package/157396/latest/

    The places api is a bit verbose, there are extensive examples available on MDN:

    https://developer.mozilla.org/en-US/docs/Querying_Places

    There is also a module developed by Mozilla community members available here that provides some abstractions:

    https://github.com/autonome/Jetpack-Modules/blob/master/places.js

    I'm not sure if theabove module has been tested against recent versions of Firefox and the SDK.

    0 讨论(0)
提交回复
热议问题