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.

Revisions

  1. jonathanablanida created this gist Aug 31, 2020.
    3 changes: 3 additions & 0 deletions jae.shopeeimg.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    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");