Skip to content

Instantly share code, notes, and snippets.

@piroor
Created November 9, 2015 10:14
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 piroor/43374862c83fa49ea88b to your computer and use it in GitHub Desktop.
Save piroor/43374862c83fa49ea88b to your computer and use it in GitHub Desktop.
Utility codes for Mozilla Thunderbird's error console (tested on Thunderbird 38)
Components.utils.import('resource://gre/modules/Services.jsm');var text=[];for (var row of Services.wm.getMostRecentWindow('global:console').document.getElementById('ConsoleBox').mConsoleRowBox.children) { if (row.boxObject.height > 0) { text.push(row.toString()); } }; Components.classes['@mozilla.org/widget/clipboardhelper;1'].getService(Components.interfaces.nsIClipboardHelper).copyString(text.join('\n---\n'));
Components.utils.import('resource://gre/modules/Services.jsm');Services.wm.getMostRecentWindow('global:console').document.getElementById('ConsoleBox').limit=99999;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment