[ad_1]
Just wanted to share.
`document.querySelectorAll(‘tr’).forEach(tr => {`
`// Check if the tr contains an anchor with rel=”noopener noreferrer”`
`if (tr.querySelector(‘a[rel=”noopener noreferrer”]’)) {`
`// Find the checkbox with the name “delete_comments[]” inside the tr`
`const checkbox = tr.querySelector(‘input[type=”checkbox”][name=”delete_comments[]”]’);`
`if (checkbox) {`
`// Enable the checkbox`
`checkbox.checked = true;`
`}`
`}`
`});`
So, after selection, you can move the comments to spam if you want. There may be other ways too. But I thought I could share.
[ad_2]