Greasy Fork

Shined up real nice.

console.message

Rich text console logging

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://greasyfork.org/scripts/370255-console-message/code/consolemessage.js?version=612436

Advertisement
Author
spiralx
Ratings
0 0 0
Version
0.1.0
Created
Updated
License
N/A
Applies to
All sites

Author's Description

console.message

Rich text console logging

From github.com/astoilkov/console.message.

Example:

console.message()
  .span({ color: 'red' })
    .text('this is red! ')
    .span({ color: 'green' })
      .text('this is green! ')
    .spanEnd()
    .text('this is again red!')
  .spanEnd()
  .line()
  .element(document.body)
  .print()