Skip to content

Instantly share code, notes, and snippets.

@Yoplitein
Created July 18, 2013 00:33
Show Gist options
  • Save Yoplitein/6025802 to your computer and use it in GitHub Desktop.
Save Yoplitein/6025802 to your computer and use it in GitHub Desktop.
Fetches a list of Steam workshop IDs from a collection.
(function($)
{
var results = [];
$("a div.workshopItemTitle").each(function(index, value)
{
results.push($(value).parent().attr("href").split("?id=")[1]);
});
alert(results.join("\n"));
})(jQuery);
//compressed
(function(e){var t=[];e("a div.workshopItemTitle").each(function(n,r){t.push(e(r).parent().attr("href").split("?id=")[1])});alert(t.join("\n"))})(jQuery)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment