KMeleonWiki > Resources > MacroLibrary > KmmSproose

Submitted by: rstlne


Sproose is a search engine that allows users to vote on websites to improve search results.

The following is a set of macros to help you vote on websites in Sproose and run web searches using Sproose.

Hit CTRL-Q to run a web search using Sproose. If you have selected some text, the selected text will be the search keywords. Alternatively, if you have typed in some text on the URL bar, that text will be used. Otherwise, the macro will prompt you for the search keywords.

Hit CTRL-SHIFT-Q to vote up the current web page in Sproose.

You can also invoke Sproose commands from the document and link popup menus and from the selected text popup menu.

Open your User Macro Folder (Edit > Configuration > User-Defined Macros) or your Macro Folder (Edit > Configuration > Macros) and create the following text file(s):


# sproose.kmm
# Macros for searching or voting for links at the Sproose search engine.


$_sproose=$URL; &_sproose;

$_sproose=$LinkURL; &_sproose;




$_sproose_query==$URL?$_sproose_query=prompt(_("Enter search query:"),_("Search Sproose")):0;

setmenu(Document,macro,"Vote for this page in Sproose",sproose_page,-1);
setmenu(LinkPopup,macro,"Vote for this link in Sproose",sproose_link,-1);
setmenu(FrameLinkPopup,macro,"Vote for this link in Sproose",sproose_link,-1);
setmenu(SelectedText,macro,"Search in Sproose",sproose_search,-1);

setaccel("CTRL SHIFT Q", "macros(sproose_page)");
setaccel("CTRL Q", "macros(sproose_search)");


# vim:set tw=0:
# -- The End --

Comments & Questions


(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.