aboutsummaryrefslogtreecommitdiff
path: root/modules/pentadactyl/pentadactyl.dot/plugins.link/links.js
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-12-27 15:36:22 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-12-27 15:36:22 -0200
commitc8f8fa5215b1586263d2e80522d7cc13d8727552 (patch)
tree906f9283472a34d1a8d0c0fabdd3e207f168d4ce /modules/pentadactyl/pentadactyl.dot/plugins.link/links.js
parenta2dc4eb8b3baaba7eb4c7f95c615e3be0fd809e7 (diff)
downloaddotfiles-c8f8fa5215b1586263d2e80522d7cc13d8727552.tar.gz
dotfiles-c8f8fa5215b1586263d2e80522d7cc13d8727552.tar.bz2
Removing pentadactyl to convert it to a submodule
Diffstat (limited to 'modules/pentadactyl/pentadactyl.dot/plugins.link/links.js')
-rw-r--r--modules/pentadactyl/pentadactyl.dot/plugins.link/links.js42
1 files changed, 0 insertions, 42 deletions
diff --git a/modules/pentadactyl/pentadactyl.dot/plugins.link/links.js b/modules/pentadactyl/pentadactyl.dot/plugins.link/links.js
deleted file mode 100644
index 21434ef..0000000
--- a/modules/pentadactyl/pentadactyl.dot/plugins.link/links.js
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * Links plugin.
- */
-
-"use strict";
-
-XML.ignoreWhitespace = false;
-XML.prettyPrinting = false;
-
-/* use strict */
-var INFO =
-["plugin", { name: "links",
- version: "0.1",
- href: "http://dactyl.sf.net/pentadactyl/plugins#links-plugin",
- summary: "Scuttle published",
- xmlns: "dactyl" },
-["author", { email: "rhatto@riseup.net" }, "Silvio Rhatto"],
-["license", { href: "http://opensource.org/licenses/mit-license.php" }, "MIT"],
-["project", { name: "Pentadactyl", "min-version": "1.0" }],
- ["p", {},
- "This plugin provides a shortcut command to publish a link to a Scuttle site."],
- ["item", {},
- ["tags", {}, ":link"],
- ["strut"],
- ["spec", {}, ":link"],
- ["description", {},
- ["p", {},
- "Add the current page into the Scuttle site."
- ]]]];
-
-group.commands.add(["link"],
- "Add link to scuttle",
- function (args) {
- var instance = 'https://links.sarava.org/bookmarks?action=add&address=';
- var doc = content.document;
- var href = encodeURIComponent(doc.location.href);
- var title = encodeURIComponent(doc.title);
- var desc = encodeURIComponent(doc.getSelection());
- var tags = encodeURIComponent(args.toString().replace(/,,/g, ';').replace(/,/g, ' ').replace(/;/g, ', '));
- commands.execute('tabopen ' + instance + href + '&title=' + title + '&description=' + desc + '&tags=' + tags);
- },
- { argCount: "*" }, true);