Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var pdflinks = [];
- Array.prototype.map.call(document.querySelectorAll("a[href$=\".pdf\"]"), function(e, i) {
- if ((pdflinks || []).indexOf(e.href) == -1) {
- pdflinks.push(e.href);
- }
- });
- console.log(pdflinks.join(" "));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement