From 8e09b7b483c6c94e8a08a7ecfef323c349c109df Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 18 Mar 2012 20:13:52 +0100 Subject: [PATCH] Fix #346. I dislike this CSS. --- 4chan_x.user.js | 7 ++----- script.coffee | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index a8d8ac40b..a121df15f 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2426,7 +2426,7 @@ _ref = $$('.thread'); for (_i = 0, _len = _ref.length; _i < _len; _i++) { thread = _ref[_i]; - op = thread.firstChild; + op = $('.op', thread); a = $.el('a', { textContent: '[ - ]', href: 'javascript:;' @@ -4069,10 +4069,7 @@ a[href="javascript:;"] {\ text-decoration: none;\ }\ \ -.block ~ .op,\ -.block ~ .omittedposts,\ -.block ~ table,\ -.block ~ br,\ +.block ~ *,\ #content > [name=tab]:not(:checked) + div,\ #updater:not(:hover) > :not(.move),\ #qp > input, #qp .inline, .forwarded {\ diff --git a/script.coffee b/script.coffee index 244ba74a8..d82d7d43c 100644 --- a/script.coffee +++ b/script.coffee @@ -2043,7 +2043,7 @@ ThreadHiding = init: -> hiddenThreads = $.get "hiddenThreads/#{g.BOARD}/", {} for thread in $$ '.thread' - op = thread.firstChild + op = $ '.op', thread a = $.el 'a', textContent: '[ - ]' href: 'javascript:;' @@ -3406,10 +3406,7 @@ a[href="javascript:;"] { text-decoration: none; } -.block ~ .op, -.block ~ .omittedposts, -.block ~ table, -.block ~ br, +.block ~ *, #content > [name=tab]:not(:checked) + div, #updater:not(:hover) > :not(.move), #qp > input, #qp .inline, .forwarded {