Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I'd like to know how console.log supports font sizes and colors. I suppose I should look it up sometime.
-
@juneeighteen on chrome if you add %c and the a css string as your second argument it will apply the css to the log message
-
@Sauruz
I think you can get the token from local storage and do an Ajax request back to a dodgy endpoint... Guess work, but I think that is one way of doing it. Also, you could enable a pop-up where they type in their details, and again they are posted to a dodgy endpoint. -
Disregard the warning, the console still works. Google removed this feature where it was possible to disable the console
-
You won't believe, people actually freak out when they accidentally tap F12 and this shows up.
I have seen it. -
@HoloDreamer When I've seen it for the first time, I freaked. Just because I have never seen COLORED console log before that. Judge me, hehe.
-
rozzzly16718yconsole.log('purple text', '%cfont-weight:bold;color:rebeccapurple;', { someOther: 'data' });
nonstandard feature in Chromium Developer tools and I believe firefox's as well -
@KittyCrumpet check out the chrome extension called StyleBot I I use that so I can override different websites css. So far I've made a dark theme for Facebook and StackOverflow.
Related Rants
Went into Facebook's source code to update the colors from blue to green and black (don't judge me) and saw this in the console log lol. Didn't know people were that gullible...
undefined
facebook
gullible users