Information
Total Authors: 15
Total Articles: 40
This Ubiquity command submits webpages to Reddit with the title being the text you either select from the webpage or type in yourself.
Usage:
Ubiquity will open a new tab and your submission will be sent to Reddit's submit page, you will need to login first. You can fill out the rest of the information on that page.
Todo:
CmdUtils.CreateCommand({
names: ["reddit"],
icon: "http://reddit.com/static/favicon.ico",
homepage: "http://www.opencodeproject.com",
arguments: [
{role: "object", nountype: noun_arb_text}],
description: "Submits the page to reddit.",
author: { name: "Allan Bogh", email: "ajbogh@allanbogh.com"},
license: "MPL,GPL",
preview: function reddit_preview(pblock, {object: {html}}) {
pblock.innerHTML = "Submits \""+html+"\" to reddit.";
},
execute: function({object: {html}}) {
var win = CmdUtils.getWindow();
var src = CmdUtils.getSelection();
Utils.openUrlInBrowser("http://reddit.com/submit" +
Utils.paramsToString({
url: win.location.href,
title: src
}));
}
});
Comments (0)