aboutsummaryrefslogtreecommitdiffstats
path: root/ego_counter.js
diff options
context:
space:
mode:
authorsnaka2009-08-28 23:12:35 +0000
committersnaka2009-08-28 23:12:35 +0000
commit2bf71711fc8736b806e43659d0d7b4a61753e16c (patch)
treecba5e59142e27ffe005111da2898687bc5567ffa /ego_counter.js
parentbec0695adeaf60e51b37f97647c81adfa03135e0 (diff)
downloadvimperator-plugins-2bf71711fc8736b806e43659d0d7b4a61753e16c.tar.bz2
- エンコードを修正
- 任意のURIを渡せるように git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35120 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'ego_counter.js')
-rw-r--r--ego_counter.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/ego_counter.js b/ego_counter.js
index 4a5b061..77c8f36 100644
--- a/ego_counter.js
+++ b/ego_counter.js
@@ -1,19 +1,22 @@
/*
- * $B%9%F!<%?%9%P!<$K$O$F%V?t$rI=<((B
+ * ステータスバーにはてブ数を表示
*
* Usage:
- * let g:ego_counter_hatenaId = 'Your hatena ID'
+ * let g:ego_counter_uri = 'Your site URI'
* or
- * js liberator.globalVariables.ego_counter_hatenaId = 'Your hatena ID'
+ * js liberator.globalVariables.ego_counter_hatenaId = 'Your site URI'
+ *
+ * ex.
+ * let g:ego_counter_uri = 'http://d.hatena.ne.jp/snaka72'
*
*/
(function() {
- const MY_ID = liberator.globalVariables.ego_counter_hatenaId || '';
+ const MY_SITE = liberator.globalVariables.ego_counter_uri || '';
let update = function(color) {
myHatebu.setAttribute(
'src',
- <>http://b.hatena.ne.jp/bc/{color}/http://d.hatena.ne.jp/{MY_ID}/</>.toSource()
+ <>http://b.hatena.ne.jp/bc/{color}/{MY_SITE}/</>.toSource()
);
};