Catalog script fix for hiding threads with short IDs

This commit is contained in:
8chan
2016-05-05 11:59:59 +02:00
committed by czaks
parent b056124e49
commit 01207dfcbb
+2 -2
View File
@@ -10,9 +10,9 @@ if (active_page == 'catalog') $(function(){
if (localStorage.hiddenthreads) { if (localStorage.hiddenthreads) {
var hidden_data = JSON.parse(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) { $.each(hidden_data[board_name], function(k, v) {
$('a[href*="'+k+'"]').parents('.mix').remove(); $('a[href$="/'+k+'.html"]').parents('.mix').remove();
}); });
} }
} }