Improvement requests :  K-Meleon Web Browser Forum
Use this forum to talk about a feature you're missing. 
OnWebSearch event and $SearchURL variable
Posted by: JamesD
Date: June 28, 2008 07:07PM

I think it would be useful to have a new event and a new Special Global Variable created.

I would like to have an event called “OnWebSearch” to be fired when a user does a web search by putting a query item into the URL bar and clicking on the search button, or highlighting a query item and clicking on the search button, or clicking on the search button and completing the query prompt. This may be an incomplete list of ways to execute a web search.

I would also like to have a new Special Global Variable called “$SearchURL”. This would be the search engine URL plus the query item at the time of the OnWebSearch event. This is the URL that is sent to history when history is active.

With the event and variable it would be possible to construct a list of searches with a time stamp in an external file, which could then be read to provide a user with a history of her/his searches.

I am currently attempting to do this with the SearchH http://kmeleon.sourceforge.net/wiki/KmmSearchH macro in the MacroLibrary http://kmeleon.sourceforge.net/wiki/MacroLibrary. That requires that the user have the history plugin active. Also I am finding that some of the web sites to which searches are sent generate additional URLs into history. Every time I press “NEXT PAGE” is not a new search to my mind.

I do not know how much development time this would take. Hopefully only a small amount of effort would be required. Also, if there were a built-in search history function coming for K-Meleon, then these items would not be required.

Options: ReplyQuote
Re: OnWebSearch event and $SearchURL variable
Posted by: kko
Date: June 29, 2008 09:55PM

See Bug 1012.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.