From b727b73c88a4239569f8535606d6f11884873235 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 7 Jan 2012 20:04:20 +0100 Subject: [PATCH] Reveal spoilers for cross-board inlined quotes. --- 4chan_x.user.js | 2 +- script.coffee | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index c3869252c..3e58a9a5f 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3129,6 +3129,7 @@ if (conf['Sauce']) sauce.init(); if (conf['Image Auto-Gif']) imgGif.init(); if (conf['Image Hover']) imgHover.init(); + if (conf['Reveal Spoilers']) revealSpoilers.init(); if (conf['Report Button']) reportButton.init(); if (conf['Quote Inline']) quoteInline.init(); if (conf['Quote Preview']) quotePreview.init(); @@ -3161,7 +3162,6 @@ if (conf['Auto Noko'] && canPost) form.action += '?noko'; if (conf['Cooldown'] && canPost) cooldown.init(); if (conf['Image Expansion']) imgExpand.init(); - if (conf['Reveal Spoilers'] && $('.postarea label')) revealSpoilers.init(); if (conf['Quick Reply']) qr.init(); if (conf['Thread Watcher']) watcher.init(); if (conf['Keybinds']) keybinds.init(); diff --git a/script.coffee b/script.coffee index 46ba26ef6..5a2282f9d 100644 --- a/script.coffee +++ b/script.coffee @@ -2449,6 +2449,9 @@ Main = if conf['Image Hover'] imgHover.init() + if conf['Reveal Spoilers'] + revealSpoilers.init() + if conf['Report Button'] reportButton.init() @@ -2498,9 +2501,6 @@ Main = if conf['Image Expansion'] imgExpand.init() - if conf['Reveal Spoilers'] and $('.postarea label') - revealSpoilers.init() - if conf['Quick Reply'] qr.init()