aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()
);
};