-
-
Save mreid-moz/4979402 to your computer and use it in GitHub Desktop.
Dump your raw FHR payload to the console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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