Answer the question
In order to leave comments, you need to log in
How to see all urls on a page?
Tell me, is there an option in developer mode to display the full paths of all url addresses on the page?
Answer the question
In order to leave comments, you need to log in
Yes, I have. Console is called.
var links = document.getElementsByTagName("a")
for (i = 0; i < links.length; i++) {
var link = links[i].href;
if(link.startsWith('http')) // HACK Некоторые ссылки имеют вид "javascript:void(0)"
{
console.log(link)
}
i++;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question