Render with display colours

there is this script: Convert Display Color to Render Material? - #13 by ShynnSup