antimony

drive firefox from node.js
git clone https://wehaveforgeathome.hates.computer/antimony.git
Log | Files | Refs | Submodules | LICENSE

cnn.js (313B)


      1 var Client = require('../client');
      2 
      3 var client = new Client('localhost:1235');
      4 
      5 client.runOnPage(
      6   'http://cnn.com/',
      7   function (callback) {
      8     $(document.body).html('Boo Yeah!');
      9     setTimeout(function () {
     10       callback(document.title);
     11     }, 3000);
     12   },
     13   function (data) {
     14     console.log(data);
     15   }
     16 );