Skip to content

Instantly share code, notes, and snippets.

@cers
Created April 10, 2010 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cers/361787 to your computer and use it in GitHub Desktop.
Save cers/361787 to your computer and use it in GitHub Desktop.
CmdUtils.makeSearchCommand({
name: "Directory",
url: "http://www10.go.com.mt/edirnew_dev/modules/edir_checkquery.asp",
get postData() {
var query = this.__globalObject.noun_arb_text.split(",");
var data = {g_telephone:query[0]};
if (query.length > 1)
data.g_surname = query[1];
return data;
},
parser: {
container: "center font font table tr",
title: "td:nth-child(4)",
body: "td:nth-child(6)",
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment