aboutsummaryrefslogtreecommitdiff
path: root/modules/pentadactyl/pentadactyl.dot
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-02-07 19:12:36 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-02-07 19:12:36 -0200
commitf07e23a2d59789e69cb67d983e0dc9a6c4c845f7 (patch)
treefe5d30b20ae5cd1d86a3c0ea92e76027c4704fd4 /modules/pentadactyl/pentadactyl.dot
parentdfcbd09fa75c8974bbd14097445aa92b5954586e (diff)
downloaddotfiles-f07e23a2d59789e69cb67d983e0dc9a6c4c845f7.tar.gz
dotfiles-f07e23a2d59789e69cb67d983e0dc9a6c4c845f7.tar.bz2
Small trick to make link command work right at pentadactyl
Diffstat (limited to 'modules/pentadactyl/pentadactyl.dot')
-rw-r--r--modules/pentadactyl/pentadactyl.dot/plugins.link/links.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pentadactyl/pentadactyl.dot/plugins.link/links.js b/modules/pentadactyl/pentadactyl.dot/plugins.link/links.js
index 3b7468e..21434ef 100644
--- a/modules/pentadactyl/pentadactyl.dot/plugins.link/links.js
+++ b/modules/pentadactyl/pentadactyl.dot/plugins.link/links.js
@@ -36,7 +36,7 @@ group.commands.add(["link"],
var href = encodeURIComponent(doc.location.href);
var title = encodeURIComponent(doc.title);
var desc = encodeURIComponent(doc.getSelection());
- var tags = encodeURIComponent(args.toString().replace(/,,/g, ','));
+ var tags = encodeURIComponent(args.toString().replace(/,,/g, ';').replace(/,/g, ' ').replace(/;/g, ', '));
commands.execute('tabopen ' + instance + href + '&title=' + title + '&description=' + desc + '&tags=' + tags);
},
{ argCount: "*" }, true);