From 9bffe59a433b9cc12bcba06aa2c26bb2a9863a9c Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 11 May 2011 10:30:31 +0200 Subject: [PATCH] Add a class to td.doubledash to help userstylers. --- 4chan_x.js | 1 + script.coffee | 1 + 2 files changed, 2 insertions(+) diff --git a/4chan_x.js b/4chan_x.js index 4ee5be823..4a25e3294 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -607,6 +607,7 @@ if (!(dd = $('td.doubledash', root))) { return; } + $.addClass(dd, 'replyhider'); a = $.el('a', { textContent: '[ - ]' }); diff --git a/script.coffee b/script.coffee index dfce779d0..5e9c3ba69 100644 --- a/script.coffee +++ b/script.coffee @@ -430,6 +430,7 @@ replyHiding = node: (root) -> return unless dd = $ 'td.doubledash', root + $.addClass dd, 'replyhider' a = $.el 'a', textContent: '[ - ]' $.bind a, 'click', replyHiding.cb.hide