found drama

get oblique

the most useful thing from today

by Rob Friesel

“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 Friesel

Software 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

sergey says:

Why not to directly use document.scrips? {
return it.src;

found_drama says:

I seldom consider using document.scripts and 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.

Leave a Reply

Your email address will not be published. Required fields are marked *