Monday, November 08, 2010 at 12:01 AM.

system.verbs.apps.Manila.windowTypes.types.manilaSite.viewInBrowser

on viewInBrowser (adr) {
	local (adrinfo);
	if window.attributes.getOne ("adrSiteInfo", @adrinfo, adr) {
		local (url = nameOf (adrinfo^));
		local (parts = string.urlSplit (url));
		local (portstring = "");
		if (parts[2] endsWith ":80") { //pop the port off of the host in the URL
			url = parts[1] + string.nthField (parts[2], ':', 1) + "/" + parts[3]};
		webBrowser.openUrl (url);
		webBrowser.bringToFront ();
		return (true)};
	return (false)};

bundle { //testing
	viewInBrowser (window.frontmost ())}



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.