console-message-v2

Rich text console logging

Dieses Skript sollte nicht direkt installiert werden. Es handelt sich hier um eine Bibliothek für andere Skripte, welche über folgenden Befehl in den Metadaten eines Skriptes eingebunden wird // @require https://update.greasyforks.org/scripts/389748/730537/console-message-v2.js

Autor
spiralx
Version
2.0.0
Erstellt am
04.09.2019
Letzte Aktualisierung
04.09.2019
Größe
13,3 KB
Lizenz
n/a

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。