Skip to content

Instantly share code, notes, and snippets.

@Nocsaron Nocsaron/x
Created Apr 30, 2009

What would you like to do?
name: "Goto",
takes: {"search_string": noun_arb_text},
description: "Goes to a webpage",
author: { name: "Nicholas Callahan", email: ""},
homepage: "",
license: "Public domain",
preview: "goto.",
execute: function( directObj ) {
var search_string = encodeURIComponent(directObj.text);
var windowManager = Components.classes[";1"]
var browserWindow = windowManager.getMostRecentWindow("navigator:browser");
var browser = browserWindow.getBrowser();
browser.loadOneTab(search_string, null, null, null, false, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.