Skip to content

Instantly share code, notes, and snippets.

@antxd
Created July 31, 2019 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antxd/fd6f5a47a363884a4759e8456115d5c1 to your computer and use it in GitHub Desktop.
Save antxd/fd6f5a47a363884a4759e8456115d5c1 to your computer and use it in GitHub Desktop.
extract info on any website from DOM inserting jQuery on console
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// ... give time for script to load, then type (or see below for non wait option)
jQuery.noConflict();
var lista = '';
$("._jpemon").find("li").each(function() {
var src = $("img", this).prop("src");
lista += "'"+src+"',";
});
console.log(lista)
$("li").(function(){
alert($(this).text())
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment