“Just give me a list of the URLs of all the scripts on this page, OK?”
For those times when you’re not sure of all the things getting loaded on the page, but you need to know those things, and you need some quick and convenient way to just get that damn list.
About Rob FrieselSoftware engineer by day, science fiction writer by night. Author of The PhantomJS Cookbook and a short story in Please Do Not Remove. View all posts by Rob Friesel →
2 Responses to the most useful thing from today
Why not to directly use document.scrips?
I seldom consider using
document.images because I’d prefer to access those elements the same way I would access all other elements. That being said, those convenience features are completely legitimate and would certainly simplify the script ever so slightly.