As the title says, let's list our most useful macros in here. They are allowed to be class-specific, but general macros are appreciated.
I'll start things off with this one. If you click it when you have a vendor window open, it'll sell all grey items in your bags and also give you a list of the items sold. Note: If you click it without having a vendor window open it'll attempt equip all the grey items, which can mess things up a bit.
/run for bag=0,4,1 do for slot=1,GetContainerNumSlots(bag),1 do local name=GetContainerItemLink(bag,slot) if name and string.find(name,"ff9d9d9d") then DEFAULT_CHAT_FRAME:AddMessage("- Selling "..name) UseContainerItem(bag,slot) end end end