From 74cfc8349d2d7e7bc05a60297b8dc590c8724315 Mon Sep 17 00:00:00 2001 From: No Face Date: Tue, 6 Mar 2012 15:53:34 +0100 Subject: [PATCH 1/3] Fix Quote Highlighting. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index d16cc2cbf..f0aed2679 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3315,7 +3315,7 @@ _ref = $$('.quotelink', qp); for (_i = 0, _len = _ref.length; _i < _len; _i++) { quote = _ref[_i]; - if (quote.hash.slice(1) === replyID) $.addClass(quote, 'forwardlink'); + if (quote.hash.slice(1) === replyID) quote.className = 'forwardlink'; } } } else { diff --git a/script.coffee b/script.coffee index 72daadcfd..58b1ade8b 100644 --- a/script.coffee +++ b/script.coffee @@ -2714,7 +2714,7 @@ QuotePreview = replyID = $.x('preceding-sibling::input', @parentNode).name for quote in $$ '.quotelink', qp if quote.hash[1..] is replyID - $.addClass quote, 'forwardlink' + quote.className = 'forwardlink' else qp.textContent = "Loading #{id}..." threadID = @pathname.split('/').pop() or $.x('ancestor::div[@class="thread"]', @).firstChild.id From 1721b3baaece9816272ae648a7f2106a9e4e6d1c Mon Sep 17 00:00:00 2001 From: No Face Date: Tue, 6 Mar 2012 16:25:12 +0100 Subject: [PATCH 2/3] Add color. --- 4chan_x.user.js | 5 ++++- script.coffee | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index c57314bac..0da09f826 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3318,7 +3318,7 @@ _ref = $$('.quotelink', qp); for (_i = 0, _len = _ref.length; _i < _len; _i++) { quote = _ref[_i]; - if (quote.hash.slice(1) === replyID) quote.className = 'forwardlink'; + if (quote.hash.slice(1) === replyID) $.addClass(quote, 'forwardlink'); } } } else { @@ -4214,6 +4214,9 @@ a[href="javascript:;"] {\ color: #000;\ outline: none;\ }\ +.forwardlink {\ + color: #34345C;\ +}\ textarea.field {\ min-height: 120px;\ }\ diff --git a/script.coffee b/script.coffee index fc943f67b..e9b7574d2 100644 --- a/script.coffee +++ b/script.coffee @@ -2719,7 +2719,7 @@ QuotePreview = replyID = $.x('preceding-sibling::input', @parentNode).name for quote in $$ '.quotelink', qp if quote.hash[1..] is replyID - quote.className = 'forwardlink' + $.addClass quote, 'forwardlink' else qp.textContent = "Loading #{id}..." threadID = @pathname.split('/').pop() or $.x('ancestor::div[@class="thread"]', @).firstChild.id @@ -3514,6 +3514,9 @@ a[href="javascript:;"] { color: #000; outline: none; } +.forwardlink { + color: #34345C; +} textarea.field { min-height: 120px; } From 3125cfdd4780f4278bb948dfac3ed61cad6552b4 Mon Sep 17 00:00:00 2001 From: No Face Date: Tue, 6 Mar 2012 16:41:37 +0100 Subject: [PATCH 3/3] Orange. --- 4chan_x.user.js | 6 +++--- script.coffee | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 3bf59091c..7fba70f22 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -4214,9 +4214,6 @@ a[href="javascript:;"] {\ color: #000;\ outline: none;\ }\ -.forwardlink {\ - color: #34345C;\ -}\ textarea.field {\ min-height: 120px;\ }\ @@ -4408,6 +4405,9 @@ td > .filesize > img[md5] {\ .filtered {\ text-decoration: line-through;\ }\ +.quotelink.forwardlink {\ + color: #ef5411;\ +}\ ' }; diff --git a/script.coffee b/script.coffee index 0c058b70b..d789f4fcf 100644 --- a/script.coffee +++ b/script.coffee @@ -3526,9 +3526,6 @@ a[href="javascript:;"] { color: #000; outline: none; } -.forwardlink { - color: #34345C; -} textarea.field { min-height: 120px; } @@ -3720,6 +3717,9 @@ td > .filesize > img[md5] { .filtered { text-decoration: line-through; } +.quotelink.forwardlink { + color: #ef5411; +} ' Main.init()