Created
November 9, 2015 10:14
-
-
Save piroor/43374862c83fa49ea88b to your computer and use it in GitHub Desktop.
Utility codes for Mozilla Thunderbird's error console (tested on Thunderbird 38)
This file contains 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
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')); |
This file contains 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
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