This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chrome/content/about.js 118 | |
for (name in info.commands) | |
chrome/content/popupmenu.js 67 | |
for (i in results) { | |
chrome/content/report-bug.js 106 | |
for (name in info) | |
chrome/content/skinlist.js 50 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Name = 'shorten-url', | |
Shorteners = [{ | |
text: 'tinyurl.com', | |
data: function(lu, cb)({ | |
url: 'http://tinyurl.com/api-create.php', | |
type: 'post', | |
data: {url: lu}, | |
success: cb, | |
}), | |
logo: <h1 style={( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Name = 'gcalendar', | |
GCal = 'http://www.google.com/calendar/', | |
Logo = ''+<a href={GCal}><img width="150" height="34" | |
style="background-color:#eee; border:none; margin-top:4px" accesskey="l" | |
src={GCal +'images/blue_beta_en.gif'}/></a>, | |
QA = <a | |
href="http://www.google.com/support/calendar/bin/answer.py?answer=36604" | |
>Quick Add</a>, | |
Icon = 'chrome://ubiquity/skin/icons/calendar.png'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prexml(); | |
const | |
Name = 'wunderground', | |
WU = 'http://www.wunderground.com/', | |
WUAPI = 'http://api.wunderground.com/auto/wui/geo/', | |
Base = '<style>'+ <![CDATA[ | |
dl, ol {margin:0 0 1em; padding:0} | |
ol {list-style:none} | |
dd {margin:0.4em 0 0.8em; min-height:50px} | |
dd img {float:left; padding-right:0.4em} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.CreateCommand({ | |
name: 'accesskeys', | |
description: 'Shows accesskey-ed elements on the current page.', | |
author: 'satyr', license: 'X', | |
icon: 'chrome://ubiquity/skin/icons/text_underline.png', | |
execute: function(){}, | |
preview: function(pb){ | |
var {top} = context.focusedWindow | |
if(top.document.contentType == 'application/vnd.mozilla.xul+xml') | |
return void this.previewDefault(pb) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.CreateCommand({ | |
name: "link-to-wikipedia", | |
takes: {phrase: noun_arb_text}, | |
modifiers: {in: noun_type_language}, | |
icon: "http://www.wikipedia.org/favicon.ico", | |
description: "Turns a phrase into a link to the matching Wikipedia article.", | |
execute: function(dob, mod) { | |
if(!dob.text) return; | |
var link = this._link(dob, mod); | |
CmdUtils.setSelection(link, {text: link}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ubiquity-preview |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 19db7607664b ubiquity/feed-parts/header/cmdutils.js | |
--- a/ubiquity/feed-parts/header/cmdutils.js Wed Mar 25 07:20:16 2009 +0900 | |
+++ b/ubiquity/feed-parts/header/cmdutils.js Wed Mar 25 07:41:04 2009 +0900 | |
@@ -943,6 +943,11 @@ | |
data, | |
callback, | |
type) { | |
+ if (typeof data === 'function') { | |
+ callback = data; | |
+ data = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 19db7607664b ubiquity/feed-parts/header/cmdutils.js | |
--- a/ubiquity/feed-parts/header/cmdutils.js Wed Mar 25 07:20:16 2009 +0900 | |
+++ b/ubiquity/feed-parts/header/cmdutils.js Wed Mar 25 07:20:42 2009 +0900 | |
@@ -1345,7 +1345,7 @@ | |
searchParser, options.parser.type || "html"); | |
} | |
else { | |
- CmdUtils.previewGet(pblock, urlString, searchParser, | |
+ CmdUtils.previewGet(pblock, urlString, null, searchParser, | |
options.parser.type || "html"); |