Last change
on this file since 31525 was 31525, checked in by ak19, 7 years ago |
Nathan provided more stuff: Themes folder contains Sencha's Themebuilder which generates GXT Themes. It includes the .theme and generated .jar files for the project theme.
|
File size:
586 bytes
|
Line | |
---|
1 | page = require("webpage").create()
|
---|
2 | system = require("system")
|
---|
3 |
|
---|
4 | if system.args.length < 2
|
---|
5 | console.log "Usage: loadurlwithoutcss.js URL"
|
---|
6 | phantom.exit()
|
---|
7 |
|
---|
8 | address = system.args[1]
|
---|
9 |
|
---|
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"]
|
---|
13 | request.abort()
|
---|
14 |
|
---|
15 | page.open address, (status) ->
|
---|
16 | if status is "success"
|
---|
17 | phantom.exit()
|
---|
18 | else
|
---|
19 | console.log "Unable to load the address!"
|
---|
20 | phantom.exit()
|
---|
Note:
See
TracBrowser
for help on using the repository browser.