console-message-v2

Rich text console logging

当前为 2019-09-04 提交的版本,查看 最新版本

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyforks.org/scripts/389748/730537/console-message-v2.js

作者
spiralx
版本
2.0.0
创建于
2019-09-04
更新于
2019-09-04
大小
13.3 KB
许可证
暂无

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()
长期地址
遇到问题?请前往 GitHub 提 Issues。