Hello guys, I would like to be able to hide the image boxes in some specific forums: (f1 - f2 - f3 - f4 - f49)
A while ago Niko made this code but it doesn't work for this topic:
A while ago Niko made this code but it doesn't work for this topic:
- Code:
$(function() {
var allowed_forums = ['4', '6', '7', '10'];
var current_forum = $('.topic-actions p.path a.nav:last-child').attr('href');
var forum_id = current_forum.split('/f')[1].split('-')[0];
if (!allowed_forums.includes(forum_id)) {
$('.bim_img_container img.bim_mainThumb').parent().parent().parent().parent().remove();
}
});