搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

how do i copy the content of url bar in local database after press enter?

more options

I wan to copy the contents of url bar after pressing the enter, which was typed by user , I need need modify url bar function.

I wan to copy the contents of url bar after pressing the enter, which was typed by user , I need need modify url bar function.

所有回覆 (6)

more options

I think your question -- which appears to require changing the code of Firefox -- is beyond the scope of this support forum.

Is there any reason you can't just query the history in places.sqlite?

more options

so what should i do for that , ?actually i am doing project on it, i thought that i should make one add-on, but the problem is, how to connect add-on to local database.. as javascript is use for add-on

more options

With respect to searching history, see these articles for syntax:

With respect to using your own database, if you look at the universe of add-ons, you can see that developers have used a wide variety of techniques. Firefox itself uses the SQLite library for database storage in the user's personal settings (profile) folder; some add-ons such as Roboform store their data centrally on the system and it is shared between their browser add-ons.

These sites might be useful:

more options

than give some direction how to achieve my job. i dont know about SQLite, how it works and all.

more options

Please try the Extension Development forum for those questions.