Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javascript:/*EpigraphicListExtractToCSV*/
- ((u, t) => {
- if (location.href !== (u = "https://db.edcs.eu/epigr/epi_ergebnis.php")) {
- if (confirm("This bookmarklet is only for website page with below URL:\n" + u + "\n\nOpen that page now?")) open(t);
- return
- }
- t = [];
- document.querySelectorAll('a[href*="bilder.php"]').forEach((lnk, rec) => {
- rec = lnk.textContent + '\t' + lnk.parentNode.querySelector('a[href*="bilder.php"]~noscript+br').nextSibling.data.trim();
- lnk.href.match(/bild=([^&]+)/)[1].split(";").forEach((fn, m, e) => {
- if (fn !== "pp") rec += "\thttps://db.edcs.eu/epigr/bilder/" + fn + (!fn.includes(".jpg") && ".jpg" || "")
- });
- t.push(rec)
- });
- t = "\ufeff" + t.join("\n");
- open(URL.createObjectURL(new Blob([t], {type: "text/plain"})));
- })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement