Skip to content

Instantly share code, notes, and snippets.

@mreid-moz
Forked from deinspanjer/gist:4772379
Last active December 13, 2015 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mreid-moz/4979402 to your computer and use it in GitHub Desktop.
Save mreid-moz/4979402 to your computer and use it in GitHub Desktop.
Dump your raw FHR payload to the console
/* Usage:
1. open about:healthreport
2. open a Web Console panel in that page
3. Pop the console out and expand it
4. Copy this JS code to the clipboard
5. Paste it into the command prompt at the bottom of the console
*/
let reporter = Components.classes["@mozilla.org/datareporting/service;1"].getService(Components.interfaces.nsISupports).wrappedJSObject.healthReporter;
reporter.collectAndObtainJSONPayload(true).then(
function onJSON(data) {
console.log(JSON.stringify(data, null, 2));
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment