Catalog script fix for hiding threads with short IDs

This commit is contained in:
8chan 2015-01-23 02:24:04 -08:00 committed by czaks
parent b056124e49
commit 01207dfcbb

View File

@ -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();
});
}
}