From b91995af595b8ffe1b87964dc6080efb761671e6 Mon Sep 17 00:00:00 2001 From: janus_wel Date: Tue, 7 Oct 2008 14:40:51 +0000 Subject: add "bang" property to extra object when addUserCommand (matanico.js, nicontroller.js) change https on post message (matanico.js) correct URL for pathtraq in function canonicalizeURL (reading.js) git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@20930 d0d07461-0603-4401-acd4-de1884942a52 --- reading.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'reading.js') diff --git a/reading.js b/reading.js index d81449b..d8a7845 100644 --- a/reading.js +++ b/reading.js @@ -1,4 +1,4 @@ -/** +/* * ==VimperatorPlugin== * @name reading.js * @description update Twitter's status to current URL and comment @@ -131,7 +131,9 @@ liberator.commands.addUserCommand(['reading'], "update Twitter's status to curre } }, // complete logic is none. - { bang: true } + { + bang: true, + } ); // stuff functions @@ -162,7 +164,7 @@ function $s(query, node) { } function canonicalizeURL(url) { - const PATHTRAQ_CANONICALIZE_URL_API = 'http://api.pathtraq.com/normalize_url2?api=json;url='; + const PATHTRAQ_CANONICALIZE_URL_API = 'http://api.pathtraq.com/normalize_url2?api=json&url='; var req = new XMLHttpRequest(); req.open('GET', PATHTRAQ_CANONICALIZE_URL_API + encodeURI(url), false); -- cgit v1.2.3