MozillaZine

Direct code testing in worked browser (Scratchpad++)

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

Post Posted April 16th, 2016, 11:55 am

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: 1677
Joined: October 1st, 2014, 3:25 pm

Post Posted April 17th, 2016, 2:15 pm

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)
*Always* check the changelogs BEFORE updating that important software!

Noitidart
 
Posts: 1168
Joined: September 16th, 2007, 8:01 am

Post Posted April 22nd, 2016, 5:34 am

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

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 1 guest