diff --git a/js/auto-reload.js b/js/auto-reload.js index f7c7022a..20989dde 100644 --- a/js/auto-reload.js +++ b/js/auto-reload.js @@ -28,16 +28,6 @@ function makeIcon(){ } $(document).ready(function(){ - if($('div.banner').length == 0) - return; // not index - - if($(".post.op").size() != 1) - return; //not thread page - - var countdown_interval; - - // Add an update link - $('.boardlist.bottom').prev().after("["+_("Update")+"] ( "+_("Auto")+") "); // Adds Options panel item if (typeof localStorage.auto_thread_update === 'undefined') { @@ -57,6 +47,15 @@ $(document).ready(function(){ } } + // not thread + if (active_page != 'thread') + return; + + var countdown_interval; + + // Add an update link + $('.boardlist.bottom').prev().after("["+_("Update")+"] ( "+_("Auto")+") "); + // Set the updater checkbox according to user setting if (localStorage.auto_thread_update === 'true') { $('#auto_update_status').prop('checked', true);