Welcome! Here you can paste sources and general debugging text, You can even set yourself a password if you want to keep it just for yourself.

Posted by casperjs-demojs on July Sat 23rd 7:33 PM - Never Expires
Download | New paste

  1. var games = [{
  2.         url: "http://one-war.com/"
  3.     }
  4. ];
  5.  
  6. var casper = require('casper').create({
  7.         remoteScripts: [
  8.             // These   scripts will be injected in remote
  9.             // DOM on every request
  10.             'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.js',
  11.             'https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore.js',
  12.             'https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.js'
  13.         ],
  14.         pageSettings: {
  15.             loadImages: false, // The WebPage instance used by Casper will
  16.             loadPlugins: false // use these settings
  17.         },
  18.         logLevel: "info", // Only "info" level messages will be logged
  19.         verbose: true // log messages will be printed out to the console
  20.     });
  21. //DEMO
  22. casper.start(games[0].url, function() {});
  23.  
  24. casper.run(function() {});
Language:
To highlight particular lines, prefix each line with @@





Hosted by KanGouLya for OpenTunisia
Donate for OpenTunisia Servers.
Powered by PHPaste 1.1