The Ripple plugin for Chrome emulates most of the PhoneGap APIs, but I'm using a third-party piece of software that uses APIs such as PhoneGap.exec() and PhoneGap.stringify() and so far as I can see I don't get those in the Ripple environment.

My work-around is to hack those methods into PhoneGap at a late stage in the initialisation. This does seem to work but feels like a kluge.

Questions: 

1). Is there a trick to making such APIs available in Ripple?

2). Any suggestions for a clean work-around?