Wormholes are currently item_id 26 (purchase_abilityitem_26), so just replace that bit of code with the relevant item if you want to bulk buy anything else from that screen.
Just copy the code from console_script.js into your web browsers inspect element area (F12) (Or right click, inspect element in chrome/Firefox etc).