Download list of urls on chrome
var links = '';
document.querySelectorAll('#content table a')
.forEach(function(elm){
links += window.location.origin + elm.getAttribute("href") + '\n';
});
copy(links);
var links = '';
document.querySelectorAll('#content table a')
.forEach(function(elm){
links += '<a href="' + window.location.origin + elm.getAttribute("href") + '">'+ elm.innerHTML +'</a><br />\n';
});
copy(links);
break after 6 for chrome
var links = '';
document.querySelectorAll('#content table a')
.forEach(function(elm,i){
i++;
links += '<a href="' + window.location.origin + elm.getAttribute("href") + '">'+ elm.innerHTML +'</a><br />\n';
if(i % 6 === 0) {
links += '<br />\n<br />\n<br />\n<br />\n';
}
});
copy(links);
98a9b358-f687-4cda-a83a-c1fd9a711665
Created on: 12th October, 2022
Last updated: 12th October, 2022
Tagged With: