Greasy Fork is available in English.
Rich text console logging
此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.org/scripts/389748/730537/console-message-v2.js
Revamped version of library written using ES6 and with some added functionality.
Based on the original console.message library (the old version can be @require
d as a library from here still).
console.message()
.span({ color: 'red' })
.text('this is red! ')
.text('this is green! ', { color: 'green' })
.text('this is again red!')
.line('info')
.object(console)
.trace()
.line()
.element(document.body)
.print()