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
// JS code to extract high-res images | |
var thumbs = document.getElementsByClassName('product-gallery--thumbnail'); | |
for(var i=0; i<thumbs.length; i++) { | |
var thumb = thumbs[i]; | |
var imgURL = thumb.src.replace('x47', 'x700'); | |
thumb.setAttribute('srcset', imgURL); | |
} | |
// Regular Expression String to extract multiple images |
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
// Code for pagination (scroll) | |
els = document.getElementsByTagName("ul"); | |
el = els[els.length-1]; | |
el.children[el.childElementCount-1].scrollIntoView(); | |
// Code for collating listings |