From 01207dfcbb1750441a274538591a1a861698dda2 Mon Sep 17 00:00:00 2001 From: 8chan Date: Fri, 23 Jan 2015 02:24:04 -0800 Subject: [PATCH] Catalog script fix for hiding threads with short IDs --- js/catalog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/catalog.js b/js/catalog.js index 5a236b8b..801c86bc 100644 --- a/js/catalog.js +++ b/js/catalog.js @@ -10,9 +10,9 @@ if (active_page == 'catalog') $(function(){ if (localStorage.hiddenthreads) { var hidden_data = JSON.parse(localStorage.hiddenthreads); - if (hidden_data[board_name]) { + if (hidden_data[board_name] && !$.isEmptyObject(hidden_data[board_name])) { $.each(hidden_data[board_name], function(k, v) { - $('a[href*="'+k+'"]').parents('.mix').remove(); + $('a[href$="/'+k+'.html"]').parents('.mix').remove(); }); } }