Skip to content

Instantly share code, notes, and snippets.

@outwitevil
Created September 30, 2016 15:58
Show Gist options
  • Save outwitevil/13330b62e17b770b8983dda656e6cf88 to your computer and use it in GitHub Desktop.
Save outwitevil/13330b62e17b770b8983dda656e6cf88 to your computer and use it in GitHub Desktop.
Fixing my yslow.js script to work with phantomjs 2.1.1
/**
* Copyright (c) 2012, Yahoo! Inc. All rights reserved.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
var i, arg, page, urlCount, viewport, webpage = require("webpage"),
system = require('system'),
args = system.args,
len = args.length,
urls = [],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment