From eb8daa7b43eed20318b58370969bd75a0a53b380 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 14 Dec 2011 15:10:30 +0100 Subject: [PATCH] Single nav.init(). --- 4chan_x.user.js | 3 +-- script.coffee | 9 +++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 1db1a0992..cda86656f 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3151,10 +3151,10 @@ if (conf['Quick Reply']) qr.init(); if (conf['Thread Watcher']) watcher.init(); if (conf['Keybinds']) keybinds.init(); + if (conf['Reply Navigation'] || conf['Index Navigation']) nav.init(); if (g.REPLY) { if (conf['Thread Updater']) updater.init(); if (conf['Thread Stats']) threadStats.init(); - if (conf['Reply Navigation']) nav.init(); if (conf['Post in Title']) titlePost.init(); if (conf['Unread Count']) unread.init(); if (conf['Quick Reply'] && conf['Persistent QR'] && canPost) { @@ -3165,7 +3165,6 @@ if (conf['Thread Hiding']) threadHiding.init(); if (conf['Thread Expansion']) expandThread.init(); if (conf['Comment Expansion']) expandComment.init(); - if (conf['Index Navigation']) nav.init(); } nodes = $$('.op, a + table'); _ref = g.callbacks; diff --git a/script.coffee b/script.coffee index aa37759e8..58e19d543 100644 --- a/script.coffee +++ b/script.coffee @@ -2498,6 +2498,9 @@ Main = if conf['Keybinds'] keybinds.init() + if conf['Reply Navigation'] or conf['Index Navigation'] + nav.init() + if g.REPLY if conf['Thread Updater'] updater.init() @@ -2505,9 +2508,6 @@ Main = if conf['Thread Stats'] threadStats.init() - if conf['Reply Navigation'] - nav.init() - if conf['Post in Title'] titlePost.init() @@ -2529,9 +2529,6 @@ Main = if conf['Comment Expansion'] expandComment.init() - if conf['Index Navigation'] - nav.init() - nodes = $$ '.op, a + table' for callback in g.callbacks