Created
July 31, 2019 20:19
-
-
Save antxd/fd6f5a47a363884a4759e8456115d5c1 to your computer and use it in GitHub Desktop.
extract info on any website from DOM inserting jQuery on console
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
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