As in all the best recipes - here is one I made earlier…
Or in pictures (a different script, but you should get the details)
Userscripts can be great at automating tasks… but always need to be checked. They can be a massive time saver, or they can make a huge mess in equal levels. Never trust 'em to be perfect.