A developer console script that can enable all checkbox if it finds any website links inside it inside “comments” list of admin page.

[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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer