dist/devtools.js
function runInPage(code,callback,errorCallback){
  errorCallback = errorCallback || function(err){ alert(errorMessage+err); };
  chrome.devtools.inspectedWindow["eval"](
    code,
    function(result, isException) {
     if (isException)
       errorCallback(isException);
     else{
       callback(result);
     }
  });
}
function runInPage(code,callback,errorCallback){
  errorCallback = errorCallback || function(err){ alert(errorMessage+err); };
  chrome.devtools.inspectedWindow["eval"](
    code,
    function(result, isException) {
     if (isException)
       errorCallback(isException);
     else{
       callback(result);
     }
  });
}
function runInPage ( code , callback , errorCallback ) { errorCallback = errorCallback || function ( err ) { alert ( errorMessage + err ) ; } ; chrome . devtools . inspectedWindow [ "eval" ] ( code , function ( result , isException ) { if ( isException ) errorCallback ( isException ) ; else { callback ( result ) ; } } ) ; }
helper function to evaluate code in the inspected page context with access to the JS and the DOM
helper function to evaluate code in the inspected page context with access to the JS and the DOM