diff options
author | drry | 2010-08-08 17:06:19 +0000 |
---|---|---|
committer | drry | 2010-08-08 17:06:19 +0000 |
commit | 07d47b610374cc470f6d68f06ef83e67010d8a9f (patch) | |
tree | 6e2176299dbb276e2a67b95a069a56fac505a6e8 | |
parent | b3d80d6d3fd6db57cdab39685198305840c310a0 (diff) | |
download | vimperator-plugins-07d47b610374cc470f6d68f06ef83e67010d8a9f.tar.bz2 |
* やっぱ。
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38228 d0d07461-0603-4401-acd4-de1884942a52
-rwxr-xr-x | twittperator.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/twittperator.js b/twittperator.js index 8632817..a3f0570 100755 --- a/twittperator.js +++ b/twittperator.js @@ -1314,8 +1314,8 @@ let PLUGIN_INFO = return result; } // }}} function showTL(s) { // {{{ - function userURL(name) - ("http" + (setting.showTLWithHTTPURL ? "" : "s") + "://twitter.com/" + name); + function userURL(screen_name) + (setting.showTLURLScheme + "://twitter.com/" + screen_name); let html = <style type="text/css"><![CDATA[ .twitter.user { vertical-align: top; } @@ -1778,7 +1778,7 @@ function loadPlugins() { // {{{ autoStatusUpdate: !!parseInt(gv.twittperator_auto_status_update || 0), statusValidDuration: parseInt(gv.twitperator_status_valid_duration || 90), historyLimit: let (v = gv.twittperator_history_limit) (v === 0 ? 0 : (v || 1000)), - showTLWithHTTPURL: gv.twittperator_show_tl_with_http_url, + showTLURLScheme: let (v = gv.twittperator_show_tl_with_https_url) ("http" + (v === false ? "" : "s")), }); let statusRefreshTimer; @@ -1789,10 +1789,8 @@ function loadPlugins() { // {{{ accessor.set("consumerKey", "GQWob4E5tCHVQnEVPvmorQ"); accessor.set("consumerSecret", "gVwj45GaW6Sp7gdua6UFyiF910ffIety0sD1dv36Cz8"); - let history; - if (__context__.Tweets) { - history = __context__.Tweets; - } else { + let history = __context__.Tweets; + if (!history) history = __context__.Tweets = accessor.get("history", []); } |