Skip to content

liligot/burningmoth-chromelogger-firefox

 
 

Repository files navigation

Chrome Logger Firefox WebExtension

WebExtension implementing Chrome Logger protocol for Firefox.

String Substitutions And Styling

Console output is automatically styled from settings unless non-escaped string substitutions are detected in the message being logged.

Logging Data From DOM

To log data to the web console through this extension after headers have been sent, the following methods are supported:

<script
	data-chromelogger-version="1.0" 
	data-chromelogger-columns="log,backtrace,type"
	data-chromelogger-rows="var_name"
>
	var var_name = [[log, backtrace, type],...];
</script>	

Attributes data-chromelogger-version and data-chromelogger-columns are optional and default to the values shown if missing. Or log the entire data object that would've otherwise been the base64-encoded header value:

<script data-chromelogger-data="var_name">
	var var_name = { ChromeLoggerData Object };
</script>

About

WebExtension implementing Chrome Logger protocol for Firefox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.5%
  • HTML 11.5%