Last active
June 27, 2023 19:16
-
-
Save nclslbrn/b3144aceaa7318ae4f8ff36d1f1fce8a to your computer and use it in GitHub Desktop.
Get fxhash edition ipfs thumbnail link and project name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copy this code in the dev tools console after reaching the end of the page (scroll down to the page bottom) | |
let output = '', name = String(document.title).replace('fxhash — ', '') | |
Array.from(document.querySelectorAll('a[href*="/gentk/"]')).forEach((a, i) => { | |
const img = a.querySelector('img') | |
output += `<a href="${a.href}" target="_blank"><img loading="lazy" alt="${name} #${i+1}" src="${img.src}"></a>` | |
}) | |
output += '' | |
console.log(output) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment