From 6ef6dfb1680cea90b94cfdf6aa3a2a633ac5bfc3 Mon Sep 17 00:00:00 2001
From: cd01
Date: Fri, 28 Dec 2012 22:45:08 +0900
Subject: Fix tweet width in twsidebar
---
twittperator/twsidebar.tw | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
(limited to 'twittperator')
diff --git a/twittperator/twsidebar.tw b/twittperator/twsidebar.tw
index f0c0cba..b8a2a84 100644
--- a/twittperator/twsidebar.tw
+++ b/twittperator/twsidebar.tw
@@ -136,17 +136,17 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
"width: " + px(sbWidth - 100) + ' !important'
].join(';')}
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-
+
+
-
-
+
+
- {escapeBreakers(t.text)}
+ {escapeBreakers(t.text)}
;
--
cgit v1.2.3
From abe54a78bc9bdb6384bbed311de5dd9462e70513 Mon Sep 17 00:00:00 2001
From: cd01
Date: Fri, 18 Jan 2013 23:37:48 +0900
Subject: Fix min width in twsidebar
---
twittperator/twsidebar.tw | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'twittperator')
diff --git a/twittperator/twsidebar.tw b/twittperator/twsidebar.tw
index b8a2a84..d4c097a 100644
--- a/twittperator/twsidebar.tw
+++ b/twittperator/twsidebar.tw
@@ -144,7 +144,7 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
-
+ {t.sub || ''}
{escapeBreakers(t.text)}
--
cgit v1.2.3
From 8f936fc555dd20f2c61f54b40e79b97a5ed201e4 Mon Sep 17 00:00:00 2001
From: cd01
Date: Sat, 19 Jan 2013 01:45:34 +0900
Subject: Add tweetTimeVisible Option
---
twittperator/twsidebar.tw | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
(limited to 'twittperator')
diff --git a/twittperator/twsidebar.tw b/twittperator/twsidebar.tw
index d4c097a..fccdfa6 100644
--- a/twittperator/twsidebar.tw
+++ b/twittperator/twsidebar.tw
@@ -56,6 +56,9 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
// サイドバーが閉じていても、こっそり開始しておく
silentStart: false,
+ // 時間とかRTした人のIDとかの表示
+ tweetTimeVisible: false,
+
// 配列かオブジェクトを返すと、変更できる。
// 文字列 "reject" を返すと、そもそもツイートが表示されなくなる。
modifier: function (msg, tab, streamName) {
@@ -144,7 +147,7 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
- {t.sub || ''}
+ {(Config.tweetTimeVisible && t.sub) ? t.sub : ''}
{escapeBreakers(t.text)}
--
cgit v1.2.3
From 5f9f8b699331135b9cd54c95bcb5595bfd1fc650 Mon Sep 17 00:00:00 2001
From: anekos
Date: Sun, 20 Jan 2013 00:14:36 +0900
Subject: サブ表示を下にして、改行するようにした。
---
twittperator/twsidebar.tw | 7 ++++---
twittperator/twsidebar/chrome/content/twsidebar.css | 13 +++++++++++++
2 files changed, 17 insertions(+), 3 deletions(-)
(limited to 'twittperator')
diff --git a/twittperator/twsidebar.tw b/twittperator/twsidebar.tw
index fccdfa6..8a7187e 100644
--- a/twittperator/twsidebar.tw
+++ b/twittperator/twsidebar.tw
@@ -129,7 +129,7 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
let xml;
let sbWidth = getSidebarWindow().document.width;
let richlistitemClasses = [className('tweet-panel'), className('tweet-' + t.type)];
- let nameClass = t.protected ? className('tweet-protected') : '';
+ let nameClass = className('item-name') + ' ' + (t.protected ? className('tweet-protected') : '');
xml =
-
+
{(Config.tweetTimeVisible && t.sub) ? t.sub : ''}
- {escapeBreakers(t.text)}
+ {escapeBreakers(t.text)}
+ {escapeBreakers(t.sub || '')}
;
diff --git a/twittperator/twsidebar/chrome/content/twsidebar.css b/twittperator/twsidebar/chrome/content/twsidebar.css
index 7081ea2..72755a4 100644
--- a/twittperator/twsidebar/chrome/content/twsidebar.css
+++ b/twittperator/twsidebar/chrome/content/twsidebar.css
@@ -52,3 +52,16 @@
.tw-anekos-sb-plugin-tweet-follow-my {
background-color: lightsalmon !important;
}
+
+.tw-anekos-sb-plugin-item-name {
+ font-weight: bold;
+}
+
+.tw-anekos-sb-plugin-item-sub {
+ font-size: 80%;
+}
+
+.tw-anekos-sb-plugin-item-text {
+ word-break: break-all;
+}
+
--
cgit v1.2.3
From ddc08a2970b54778b6a64c3b7cd8a5e6f749a9fd Mon Sep 17 00:00:00 2001
From: anekos
Date: Sun, 20 Jan 2013 00:26:40 +0900
Subject: tweetTimeVisible は削除 :style コマンドで設定する仕様に。
例:
:style -name tw-sidebar-hidden-time chrome://* .tw-anekos-sb-plugin-item-time { display: none }
---
twittperator/twsidebar.tw | 12 ++++--------
twittperator/twsidebar/chrome/content/twsidebar.css | 9 +++++++--
2 files changed, 11 insertions(+), 10 deletions(-)
(limited to 'twittperator')
diff --git a/twittperator/twsidebar.tw b/twittperator/twsidebar.tw
index 8a7187e..f005760 100644
--- a/twittperator/twsidebar.tw
+++ b/twittperator/twsidebar.tw
@@ -56,9 +56,6 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
// サイドバーが閉じていても、こっそり開始しておく
silentStart: false,
- // 時間とかRTした人のIDとかの表示
- tweetTimeVisible: false,
-
// 配列かオブジェクトを返すと、変更できる。
// 文字列 "reject" を返すと、そもそもツイートが表示されなくなる。
modifier: function (msg, tab, streamName) {
@@ -146,11 +143,10 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
-
- {(Config.tweetTimeVisible && t.sub) ? t.sub : ''}
{escapeBreakers(t.text)}
- {escapeBreakers(t.sub || '')}
+ {escapeBreakers(t.sub || '')}
+ {escapeBreakers(t.time || '')}
;
@@ -397,8 +393,8 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
t.text += ' [\u5730\u57DF: ' + msg.user.location + ']';
}
- if (!t.sub && msg.created_at) {
- t.sub = new Date(msg.created_at).toLocaleTimeString().replace(/:\d+$/,'');;
+ if (msg.created_at) {
+ t.time = new Date(msg.created_at).toLocaleTimeString().replace(/:\d+$/,'');;
}
if (real && dummy) {
diff --git a/twittperator/twsidebar/chrome/content/twsidebar.css b/twittperator/twsidebar/chrome/content/twsidebar.css
index 72755a4..3801f99 100644
--- a/twittperator/twsidebar/chrome/content/twsidebar.css
+++ b/twittperator/twsidebar/chrome/content/twsidebar.css
@@ -57,11 +57,16 @@
font-weight: bold;
}
+.tw-anekos-sb-plugin-item-text {
+ word-break: break-all;
+}
+
.tw-anekos-sb-plugin-item-sub {
+ background-color: pink;
font-size: 80%;
}
-.tw-anekos-sb-plugin-item-text {
- word-break: break-all;
+.tw-anekos-sb-plugin-item-time {
+ font-size: 80%;
}
--
cgit v1.2.3
From 334c1ad154d3edfb27eba18c583cf4fc40f6cd08 Mon Sep 17 00:00:00 2001
From: anekos
Date: Sun, 20 Jan 2013 22:25:29 +0900
Subject: 以前の名前横の表示を選択可能にした。
以前のようにする方法
:style -name tw-sidebar-hidden-time chrome://* <
-
+
+
+ {escapeBreakers(t.sub || t.time)}
{escapeBreakers(t.text)}
- {escapeBreakers(t.sub || '')}
- {escapeBreakers(t.time || '')}
+
+ {escapeBreakers(t.sub || '')}
+ {escapeBreakers(t.time || '')}
+
;
diff --git a/twittperator/twsidebar/chrome/content/twsidebar.css b/twittperator/twsidebar/chrome/content/twsidebar.css
index 3801f99..e431b3b 100644
--- a/twittperator/twsidebar/chrome/content/twsidebar.css
+++ b/twittperator/twsidebar/chrome/content/twsidebar.css
@@ -70,3 +70,8 @@
font-size: 80%;
}
+.tw-anekos-sb-plugin-item-time-and-sub {
+ font-size: 80%;
+ display: none;
+}
+
--
cgit v1.2.3