Skip to content

Instantly share code, notes, and snippets.

@aazbeltran
Created March 30, 2015 18:51
Show Gist options
  • Save aazbeltran/5ac238e5850d63ee9454 to your computer and use it in GitHub Desktop.
Save aazbeltran/5ac238e5850d63ee9454 to your computer and use it in GitHub Desktop.
if(typeof jQuery=="undefined"){function loadScript(url,callback){var head=document.getElementsByTagName('head')[0];var script=document.createElement('script');script.type='text/javascript';script.src=url;script.onreadystatechange=callback;script.onload=callback;head.appendChild(script)}loadScript("https://code.jquery.com/jquery-2.1.3.min.js",x)}else{x()}function x(){var alertx="";$(".datadisplaytable a").map(function(){var $this=$(this);$.ajax({async:false,url:$this.attr("href"),success:function(a){var datadisplaytable=$(".datadisplaytable",a);alertx+="\n\n"+$(".ntdefault",$("tbody",datadisplaytable.get(0)).children(0).get(4)).text()+"\n";$("tbody",datadisplaytable.get(1)).children(0).map(function(a,b){if(a!=0){var td=$("td",b);alertx+=$(td[0]).text().split(" - ")[1]+" => "+$(td[1]).text()+"\n"}})}})});alert(alertx)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment