Skip to content

Instantly share code, notes, and snippets.

@sbeckeriv
Last active September 24, 2015 17:12
Show Gist options
  • Select an option

  • Save sbeckeriv/db1764ba4d51f85482ee to your computer and use it in GitHub Desktop.

Select an option

Save sbeckeriv/db1764ba4d51f85482ee to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<meta charset="utf-8">
<title>Bookmakrlet</title>
<body>
<a href="javascript:(function()%20{$("#downloadFileCSV").remove();var%20scrub_csv=function(e){return'"'+$.trim(e.replace(/"/g,'""')+'"')},data=$.makeArray($(".destiny-icon-item").map(function(e,t){return%20scrub_csv($(t).find(".standardTitle").text())+","+scrub_csv($(t).find(".requirements").text())+","+scrub_csv($(t).find(".itemSubtitle%20.tierTypeName").text())+","+scrub_csv($(t).find(".vendorFailureReasons").text())})).join("\n");data=["name","requirements%20count","teir","requirements","\n"].join()+data,$("<a></a>").attr("id","downloadFileCSV").attr("href","data:text/csv;charset=utf8,"+encodeURIComponent(data)).attr("download","filename.csv").appendTo("body"),$("#downloadFileCSV").ready(function(){$("#downloadFileCSV").get(0).click()});})()">Export CSV from destiny vendors. Click and drag to bookmark bar<a/>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment