How to select all files

I’m trying to work out the best way to select all the files after a user logs in. Specifically, once they login to instagram, I want all (or at least the first 100) images/videos to be selected instantly without needing any further imput.

I’ve been looking for a javascript event that triggers after a signin, or when the files are available to be clicked on. Any advise?