1
edit
Changes
→DPS909A - Fall 2008
== DPS909A - Fall 2008 ==
Ubiquity Commands - Work in Progress
<b>Pastebin</b><br />
<i>Transfers selected text to a new pastebin</i>><br />
<b>Usage:</b> <i>pb</i>
<pre>CmdUtils.CreateCommand({
name: "pb",
homepage: "http://aaronmt.wordpress.com",
author: { name: "Aaron Train", email: "aaron.train@gmail.com"},
description: "Transfers selected text to a new Pastebin.",
help: "Selected text will be sent to a new Pastebin",
icon: "http://pastebin.ca/pastebin.ico",
preview: function(pblock) {
var text=context.focusedWindow.document.getSelection();
var url = "http://pastebin.ca";
},
execute: function() {
var url = "http://pastebin.ca";
var text=context.focusedWindow.document.getSelection();
displayMessage(text);
Utils.openUrlInBrowser(url);
},
});</pre>
== Contact ==