Skip to content

Instantly share code, notes, and snippets.

@folarb
folarb / gist:73613
Last active April 20, 2018 17:07
open
CmdUtils.CreateCommand({
name: "open",
icon: "http://example.com/example.png",
author: { name: "Robert B****", email: "robert.b****@gmail.com"},
license: "GPL",
description: "Opens sites",
help: "Enter 'open' and the site url you want to open.",
takes: {"site": noun_arb_text},
preview: function( pblock, site ) {
var template = "Opens ${site}";
@folarb
folarb / x
Last active April 20, 2018 17:08
search Mozilla Add-ons for add-ons
makeSearchCommand({
name: "add-on",
icon: "https://addons.mozilla.org/favicon.ico",
author: {
name: "Robert B****",
email: "folarb@gmail.com"
},
description: "Searches Mozilla Add-ons for your words",
help: "Doesn't show experimental add-ons (like ubiquity) yet. Enter (part of) the name or the description of an add-on. The first 5 results will be displayed in the preview, hit return to go to the search page",
url: "https://addons.mozilla.org/en-US/firefox/search?q={QUERY}",
@folarb
folarb / x
Last active April 20, 2018 17:08
CmdUtils.CreateCommand({
name: "gimage",
icon: "http://www.google.com/favicon.ico",
author: {
name: "Robert B****",
email: "folarb@gmail.com"
},
description: "Searches Google Image for your words.",
help: "enter gimage + [what you want to search for] amd hit return to search Google for images",
takes: {
@folarb
folarb / x
Last active April 20, 2018 17:09
CmdUtils.CreateCommand({
name: "gmail",
icon: "http://i290.photobucket.com/albums/ll274/airpupil/gmail_icon.png",
author: { name: "Robert B****", email: "folarb@gmail.com"},
description: "opens gmail inbox",
help: "enter 'gmail'and hit return to load the gmail inbox page",
preview: function( pblock ) {
pblock.innerHTML = "Opens gmail in a new tab, or in the current tab if it's empty.";
},
execute: function() {