Created
July 18, 2013 00:33
-
-
Save Yoplitein/6025802 to your computer and use it in GitHub Desktop.
Fetches a list of Steam workshop IDs from a collection.
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
(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