Greasy Fork is available in English.

console-message-v2

Rich text console logging

このスクリプトは単体で利用できません。右のようなメタデータを含むスクリプトから、ライブラリとして読み込まれます: // @require https://update.greasyfork.org/scripts/389748/730537/console-message-v2.js

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
spiralx
バージョン
2.0.0
作成日
2019/09/04
更新日
2019/09/04
ライセンス
不明

console-message-v2.js - rich-text console logging

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).

Example
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()