Rich text console logging
目前為
此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.cn-greasyfork.org/scripts/389748/730534/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 @required 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()