From 8564f23caa253217a5549633ed8b8a80fe159c7b Mon Sep 17 00:00:00 2001 From: Pashe Date: Sun, 19 Oct 2014 21:30:59 -0500 Subject: [PATCH 1/3] thread-watcher.js: change display format --- js/thread-watcher.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/thread-watcher.js b/js/thread-watcher.js index 22656e48..52b8142e 100644 --- a/js/thread-watcher.js +++ b/js/thread-watcher.js @@ -28,10 +28,10 @@ watchlist.render = function(reset) { JSON.parse(localStorage.watchlist).forEach(function(e, i) { //look at line 69, that's what (e) is here. threads.push('
' + - 'Board: '+e[0]+' ' + - 'Thread: '+''+e[1]+' ' + - 'Replies: '+e[2]+' ' + - '[Unwatch]'+ + '/'+e[0]+'/ - ' + + ''+e[1].replace("thread_", "Thread #")+'' + + ' ('+e[2]+') ' + + 'X'+ '
'); }); if ($('#watchlist').length) { From 25ed820f8ab463dc2f5221ab29a5efbb60d7ea37 Mon Sep 17 00:00:00 2001 From: Pashe Date: Mon, 20 Oct 2014 16:44:19 -0500 Subject: [PATCH 2/3] thread-watcher.js: fix background and border --- js/thread-watcher.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/thread-watcher.js b/js/thread-watcher.js index 52b8142e..625e95e0 100644 --- a/js/thread-watcher.js +++ b/js/thread-watcher.js @@ -40,6 +40,7 @@ watchlist.render = function(reset) { $('#watchlist').append(threads.join('')); } else { //If the watchlist has not yet been rendered, create it. + var menuStyle = getComputedStyle($('.boardlist')[0]); $('form[name="post"]').before( $('
'+ '
'+ @@ -47,10 +48,7 @@ watchlist.render = function(reset) { '[Clear Ghosts]'+ '
'+ threads.join('')+ - '
').css({ - background: $('.reply').css('background'), - borderColor : $('.reply').css('border-color') - })); + '').css("background-color", menuStyle.backgroundColor).css("border", menuStyle.borderBottomWidth+" "+menuStyle.borderBottomStyle+" "+menuStyle.borderBottomColor)); } return this; }; From c41c5e4606c8d0911ba9f781879ca560695944b1 Mon Sep 17 00:00:00 2001 From: Pashe Date: Mon, 20 Oct 2014 18:40:31 -0500 Subject: [PATCH 3/3] style.css: pin thread watcher to lower right corner --- stylesheets/style.css | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/stylesheets/style.css b/stylesheets/style.css index 9be5422e..5b22576d 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -949,10 +949,18 @@ span.pln { margin-bottom: 10px; } +#watchlist { + font-size: 8pt; + width: 15%; + position: fixed; + right: 0pt; + bottom: 0pt; + margin: 0pt; + padding: 0pt; +} + .watchlist-inner, .watchlist-controls { - margin: 0 auto; - margin-top: 10px; - margin-bottom: 10px; + margin: 0pt; text-align: center; }