Answer the question
In order to leave comments, you need to log in
How to find all .pdf website files through browser console?
Guys, hello!
How to find .pdf files that are stored on the site through the browser console?
Answer the question
In order to leave comments, you need to log in
The question, of course, is that I want to send to study javascript and what it can do in the browser
But still, let's povang ... there is a certain site, on one of its pages there are several links to .pdf documents, you want to collect the url of these links using the console, guessed it ?
If guessed:
Array.prototype.map.call(document.getElementsByTagName('a'), function(link) {
return link.href;
}).filter(function(url) {
return url.endsWith('.pdf');
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question