aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbmcommentsviewer.js4
-rw-r--r--twittperator.js16
2 files changed, 17 insertions, 3 deletions
diff --git a/sbmcommentsviewer.js b/sbmcommentsviewer.js
index d6dedd1..326d8bf 100644
--- a/sbmcommentsviewer.js
+++ b/sbmcommentsviewer.js
@@ -3,7 +3,7 @@ var PLUGIN_INFO =
<name>SBM Comments Viewer</name>
<description>List show Social Bookmark Comments</description>
<description lang="ja">ソーシャル・ブックマーク・コメントを表示します</description>
- <version>0.2.0</version>
+ <version>0.2.1</version>
<minVersion>2.0pre</minVersion>
<maxVersion>3.0</maxVersion>
<updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/sbmcommentsviewer.js</updateURL>
@@ -126,7 +126,7 @@ function SBMEntry(id, timestamp, comment, tags, extra){ //{{{
SBMEntry.prototype = { //{{{
toHTML: function(format){
function makeLink(str)
- XMLList(str.replace(/(?:https?:\/\/|mailto:)\S+/g, '<a href="#" highlight="URL">$&</a>'));
+ XMLList(str.replace(/(?:https?:\/\/|mailto:)\S+/g, '<a href="$&" highlight="URL">$&</a>'));
var xml = <tr/>;
var self = this;
diff --git a/twittperator.js b/twittperator.js
index d1511b8..2ea49b9 100644
--- a/twittperator.js
+++ b/twittperator.js
@@ -28,7 +28,7 @@ let PLUGIN_INFO =
<name>Twittperator</name>
<description>Twitter Client using OAuth and Streaming API</description>
<description lang="ja">OAuth/StreamingAPI対応Twitterクライアント</description>
- <version>1.9.4</version>
+ <version>1.9.5</version>
<minVersion>2.3</minVersion>
<maxVersion>2.4</maxVersion>
<author mail="teramako@gmail.com" homepage="http://d.hatena.ne.jp/teramako/">teramako</author>
@@ -1342,6 +1342,18 @@ let PLUGIN_INFO =
let restartCount = 0;
let lastParams;
let listeners = [];
+ let retryTimer;
+
+ function clearRetryTimer() {
+ if (retryTimer)
+ clearTimeout(retryTimer);
+ retryTimer = null;
+ }
+
+ function updateRetryTimer(restartFunc) {
+ clearRetryTimer();
+ retryTimer = setTimeout(restartFunc, 60 * 1000);
+ }
function restart() {
stop();
@@ -1354,6 +1366,7 @@ let PLUGIN_INFO =
}
function stop() {
+ clearRetryTimer();
if (!connection)
return;
connection.cancel();
@@ -1381,6 +1394,7 @@ let PLUGIN_INFO =
let onReceive = function(data) {
try {
+ updateRetryTimer(restart);
let lines = data.split(/\r\n|[\r\n]/);
if (lines.length >= 2) {
lines[0] = buf + lines[0];