Skip to content

Instantly share code, notes, and snippets.

@jonathanablanida
Created August 31, 2020 18:13
Show Gist options
  • Save jonathanablanida/d7742b3ddd4c7642d11258253f97f71d to your computer and use it in GitHub Desktop.
Save jonathanablanida/d7742b3ddd4c7642d11258253f97f71d to your computer and use it in GitHub Desktop.
var img = document.querySelector("div.product-briefing.flex.card._2cRTS4 > div._30iQ1- > div.flex.flex-column > div._1eNVDM > div > div._3ZDC1p > div");
found = img.style["background-image"].match(/"(.*)\"/g);
window.open(found[0].replace(/["']/g, ""),"_blank");
@jonathanablanida
Copy link
Author

var img = document.querySelector("div.product-briefing.flex.card > div > div.flex.flex-column > div> div > div > div[style*=background-image]");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment