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 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'twittperator/twsidebar.tw') 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 || '')} ; -- 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 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'twittperator/twsidebar.tw') 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) { -- 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)} - - + + + + ; -- cgit v1.2.3