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 || '')} + + ; @@ -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.text)} - - + + + + ; 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