Skip to content

Instantly share code, notes, and snippets.

CmdUtils.makeSearchCommand({
name: "devmo",
description: "Search developer.mozilla.com for your words",
author: {name: "Ivan Morgillo", email: "imorgillo [at] sanniolug [dot] org"},
homepage: "http://hamen.org",
license: "GPL v3",
url: "https://developer.mozilla.org/Special:Search?search={QUERY}&type=fulltext",
parser: {container: "div#searchResults > ul > li", title: "div.title > a + a", preview: "div.searchpreview"
}
});
CmdUtils.makeSearchCommand({
author: {name: "Ivan Morgillo", email: "imorgillo [at] sanniolug [dot] org"},
homepage: "http://hamen.org",
license: "GPL v3",
description: "Search Bing for your words",
name: "bing",
url: "http://www.bing.com/search?q={QUERY}&form=QBLH&filt=all",
parser: {container: "div#results > ul.sb_results > li",
title: "div.sb_tlst h3",
preview: "p"}
CmdUtils.CreateCommand({
name: "latex",
description: "Write LaTex and render it with mimetex ",
help: "Write down some LaTex statement, i.e. \frac{1}{S^2 - 1}",
author: {name: "Ivan Morgillo", email: "imorgillo [at] sanniolug [dot] org"},
license: "GPL v3",
homepage: "http://hamen.org",
arguments: {object: noun_arb_text},
preview: function(pblock, args) {
var postdata = args.object.text;