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 history api. It seems window.history is limited to session history only. Any help? I'm going crazy trying to figure this out. Addons like history export must do something like this, but their code is not immediately understandable to me.
相关问题
- How to call firefox addon function with onclick in
- How does same-domain policy apply to background sc
- SQLite Storage in Firefox 3.0 +
- Get PostData as in FireBug
- Why is [removed]history.go(-1); not working on mob
相关文章
- Progressive web app(PWA) vs Electron vs Browser ex
- Changing state without changing browser history in
- Access Add-On SDK 'main' from XUL
- How to package Firefox and Chrome extensions
- Mozilla FireFox Addons -> Include external library
- Loading a local html file in an injected iframe wi
- Mozilla WebExtension API storage - Debugging with
- Authenticate a facebook user in a Firefox plug-in
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.