Last active
May 28, 2019 14:59
-
-
Save subtleGradient/3a7aac41df025020223bea349b20f496 to your computer and use it in GitHub Desktop.
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
[...$$('img')].map(img => { | |
const imageFilename = img.getAttribute('src'); | |
const [type, ...name] = img.parentNode.parentNode.parentNode.parentNode.nextSibling.nextSibling.textContent.trim().split('\n').map(string=>string.trim()).reverse(); | |
return `cp '${imageFilename}' '${name.reverse().join(' ')}.${imageFilename.split('.').reverse()[0]}'`; | |
}).join('\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
op-img-extract.console.js
script into the consolecopy($_)
cd
into the unzipped folder