From b5bb7032880cdaed73ccd63ac204fac7bcdf817a Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 30 Oct 2011 17:47:27 +0100 Subject: [PATCH] Strikethrough backlinks of filtered posts. --- 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 1d18f2678..6919ada61 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2330,7 +2330,7 @@ } link = $.el('a', { href: "#" + id, - className: 'backlink', + className: root.hidden ? 'filtered backlink' : 'backlink', textContent: quoteBacklink.funk(id) }); if (conf['Quote Preview']) { @@ -3324,6 +3324,9 @@ .filetitle, .replytitle, .postername, .commentpostername, .postertrip {\ background: none;\ }\ + .filtered {\ + text-decoration: line-through;\ + }\ \ /* Firefox bug: hidden tables are not hidden. fixed in 9.0 */\ [hidden] {\ diff --git a/script.coffee b/script.coffee index 65817bfa1..fca90fd97 100644 --- a/script.coffee +++ b/script.coffee @@ -1762,7 +1762,7 @@ quoteBacklink = continue if !conf['OP Backlinks'] and el.className is 'op' link = $.el 'a', href: "##{id}" - className: 'backlink' + className: if root.hidden then 'filtered backlink' else 'backlink' textContent: quoteBacklink.funk id if conf['Quote Preview'] $.bind link, 'mouseover', quotePreview.mouseover @@ -2586,6 +2586,9 @@ Main = .filetitle, .replytitle, .postername, .commentpostername, .postertrip { background: none; } + .filtered { + text-decoration: line-through; + } /* Firefox bug: hidden tables are not hidden. fixed in 9.0 */ [hidden] {