Direct code testing in worked browser (Scratchpad++)
-
- Posts: 13
- Joined: April 6th, 2013, 12:37 pm
Direct code testing in worked browser (Scratchpad++)
Is it possible to test some javascript code parts directly in a launched browser, as if the JS code launched by extension? Like Scratchpad, but with rights of an extension, to skip multiple restarts/edits etc. of firefox?
-
- Posts: 1504
- Joined: October 1st, 2014, 3:25 pm
Re: Direct code testing in worked browser (Scratchpad++)
What aspect of this is not covered by setting about:config > devtools.chrome.enabled to true and using an actual chrome-context Scratchpad?
It's also theoretically possible to remote-debug the browser and enter the context of a running bootstrapped extension, however I've never made that to work.
EDIT oops, missed your UA string. I believe Firefox 15 might not have these features, in which case you'd have to write an extension - I would suggest try starting with https://addons.mozilla.org/addon/workspace/ as a base and edit it to suit your personal needs.
IIRC the stuff I mentioned above requires Firefox 24+ (it might have been included as early as Firefox 18 but in experimental status / behind a pref)
It's also theoretically possible to remote-debug the browser and enter the context of a running bootstrapped extension, however I've never made that to work.
EDIT oops, missed your UA string. I believe Firefox 15 might not have these features, in which case you'd have to write an extension - I would suggest try starting with https://addons.mozilla.org/addon/workspace/ as a base and edit it to suit your personal needs.
IIRC the stuff I mentioned above requires Firefox 24+ (it might have been included as early as Firefox 18 but in experimental status / behind a pref)
-
- Posts: 1168
- Joined: September 16th, 2007, 8:01 am
Re: Direct code testing in worked browser (Scratchpad++)
This is how to use scratchpad - https://www.youtube.com/watch?v=oo4STWceGTM