SurvivorLibraryScrape/get_page_urls_browser.js

13 lines
555 B
JavaScript

// I used this script to copy all the pages/categories to my clipboard
// Open http://www.survivorlibrary.com/library-download.html, then open developer tools.
// Copy/paste the script below
const table = document.querySelector('tbody');
const links = table.querySelectorAll('a');
const linkList = Array.from(links)
.map(link => link.href)
.join('\n');
// Only works in the browser console from what I know. Might even be a Firefox-only thing.
// Copies specified text to clipboard
copy(linkList);