How to find all files of website format .pdf through the browser console?

Hi, guys!
How to find a file format .pdf stored on the website through the browser console?
July 12th 19 at 17:32
3 answers
July 12th 19 at 17:34
The question of course is such that I want to send him to study javascript and the browser
But let's povanguyu... there is a website, on one of its pages a few links .pdf documents You want to collect the URLs of these links using konsolki, right?

If you guessed:
Array.prototype.map.call(document.getElementsByTagName('a'), function(link) {
 return link.href;
}).filter(function(url) {
 return url.endsWith('.pdf');
});
July 12th 19 at 17:36
It's not a question, it's nonsense!
Using the web console you can view all PDF files that are currently CONNECTED on the website, that were now loaded on the website.
In addition, if the site owner does not want it, legitimate methods you never know the list of files on the website. - Bethany.Litt commented on July 12th 19 at 17:39
: Files posted on the website and they are available, not just to flip through each page, I wanted to know is it possible using DOM commands to display all files. - garrison commented on July 12th 19 at 17:42
Using the DOM commands to display files from all site? :))) I highly recommend you read at least what is DOM. Thanks for the good mood) - Bethany.Litt commented on July 12th 19 at 17:45
July 12th 19 at 17:38
*punch a hand over his face*
Do you know whether the console Lin teach?
Yes, there are no such commands. There(in the debugger) the list of downloaded files, but I think you mean links.

Find more questions by tags JavaScriptBrowsers