make code shorter

Hello, I changed the `console.str2clr` function to use ternary operator.

And auto-override console methods by using an array to generate the methods.