Copy and paste this into a new macro.
/script 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
This sells all gray items in your bags.
Note- Only use when you have a vendor window open..it truly just 'right clicks' all the gray items, meaning it will try to equip you with them if you use it without a vendor
<3 Alk. This saves me alot of bitching.