1 <p><strong>Some personal info may be in the data dump. An option to 2 redact sensitive info will be added in the future, but until then, be 3 careful about posting data dumps on bug reports.</strong></p> 4 5 <!-- TODO(akalin): Add option to redact sensitive info. --> 6 7 <button id="dump-to-text">Dump to text</button> 8 9 <pre id="data-dump"></pre> 10 11 <script> 12 (function() { 13 var dumpToTextButton = document.getElementById('dump-to-text'); 14 var dataDump = document.getElementById('data-dump'); 15 dumpToTextButton.addEventListener('click', function(event) { 16 // TODO(akalin): Add info like Chrome version, OS, date dumped, etc. 17 18 var data = ''; 19 data += '======\n'; 20 data += 'Status\n'; 21 data += '======\n'; 22 data += JSON.stringify(chrome.sync.aboutInfo, null, 2); 23 data += '\n'; 24 data += '\n'; 25 26 data += '=============\n'; 27 data += 'Notifications\n'; 28 data += '=============\n'; 29 data += JSON.stringify(chrome.sync.notifications, null, 2); 30 data += '\n'; 31 data += '\n'; 32 33 data += '===\n'; 34 data += 'Log\n'; 35 data += '===\n'; 36 data += JSON.stringify(chrome.sync.log.entries, null, 2); 37 data += '\n'; 38 39 dataDump.textContent = data; 40 }); 41 })(); 42 </script> 43