From f07e23a2d59789e69cb67d983e0dc9a6c4c845f7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 7 Feb 2013 19:12:36 -0200 Subject: Small trick to make link command work right at pentadactyl --- modules/pentadactyl/pentadactyl.dot/plugins.link/links.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/pentadactyl') 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); -- cgit v1.2.3