Last active
December 16, 2015 14:20
-
-
Save harthur/5448267 to your computer and use it in GitHub Desktop.
Open a Firefox devtools window that's debugging the current browser window.
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
/* | |
* Running this scratchpad in chrome mode will open a devtools window that's debugging | |
* the current browser window | |
*/ | |
let {devtools} = Components.utils.import("resource:///modules/devtools/gDevTools.jsm", {}); | |
let win = Services.wm.getMostRecentWindow("navigator:browser"); | |
let target = devtools.TargetFactory.forWindow(win); | |
let toolbox = gDevTools.showToolbox(target, "styleeditor", "window"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To run this, first enable chrome debugging:
true
Then open a scratchpad: