1 page = require("webpage").create()
2 system = require("system")
4 if system.args.length < 2
5 console.log "Usage: loadurlwithoutcss.js URL"
8 address = system.args[1]
10 page.onResourceRequested = (requestData, request) ->
11 if (/http:\/\/.+?\.css/g).test(requestData["url"]) or requestData["Content-Type"] is "text/css"
12 console.log "The url of the request is matching. Aborting: " + requestData["url"]
15 page.open address, (status) ->
16 if status is "success"
19 console.log "Unable to load the address!"