How to select a lot of topics fast?

This code was not working for me:

$('input[type="checkbox"]').attr('checked', 'checked')

It was checking the boxes, but the wrench button wouldn’t pop up (I don’t think Discourse was registering them as having been selected).

So instead, I simulated a click with:

$('input[type="checkbox"]').each(function() { this.click()})

and this worked as though I’d manually clicked the checkboxes myself. This seems to be the simplest way to do this for one-time migrations. I hope this proves helpful :slight_smile: