Skip to content

Instantly share code, notes, and snippets.

@BurakAy
BurakAy / shopify_files.js
Created July 1, 2022 12:43 — forked from mubbo/shopify_files.js
download images from shopify shop
function fetchPageAssets() {
let images = document.querySelectorAll('img[src*=files]');
images.forEach(function(image) {
files.push('<a href="' + image.src.replace(/_60x60/, "") + '"><img src="' + image.src.replace(/_60x60/, "") + '">');
});
}
function downloadListFile() {
let button = document.createElement("a");
let data = 'data:application/octet-stream;base64,' + window.btoa(files.join('\n'));

Keybase proof

I hereby claim:

  • I am burakay on github.
  • I am buraka (https://keybase.io/buraka) on keybase.
  • I have a public key ASDsEuln-QjAWEkQDj-AwxiMeAAZV1VB9vHCttrfGmp9ngo

To claim this, I am signing this object: