Direct code testing in worked browser (Scratchpad++)

Talk about add-ons and extension development.
Post Reply
Pochemuchkin
Posts: 13
Joined: April 6th, 2013, 12:37 pm

Direct code testing in worked browser (Scratchpad++)

Post by Pochemuchkin »

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?
barbaz
Posts: 1504
Joined: October 1st, 2014, 3:25 pm

Re: Direct code testing in worked browser (Scratchpad++)

Post by barbaz »

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)
Noitidart
Posts: 1168
Joined: September 16th, 2007, 8:01 am

Re: Direct code testing in worked browser (Scratchpad++)

Post by Noitidart »

This is how to use scratchpad - https://www.youtube.com/watch?v=oo4STWceGTM
Post Reply