Skip to content

Instantly share code, notes, and snippets.

@merqlove
Last active August 29, 2015 14:24
Show Gist options
  • Save merqlove/73f08dbcce6184e97cc7 to your computer and use it in GitHub Desktop.
Save merqlove/73f08dbcce6184e97cc7 to your computer and use it in GitHub Desktop.
Droplr Export Uids
var dropList = [];
for(var i in Droplr.DropList.models) {
// Find the drop ID in the list
var dropID = Droplr.DropList.models[i].id,
dropTitle = Droplr.DropList.models[i].attributes.title;
if(dropList.indexOf(dropID) == -1) { // If ID is not on the list, add it to the list
dropList.push({id: dropID, title: dropTitle});
}
}
// Return the data
alert(JSON.stringify({drops: dropList}));
// https://chrome.google.com/webstore/detail/imacros-for-chrome/cplklnmnlbnpmjogncfgfijoopmnlemp?hl=en
// iMacros is fastest way to do it.
// Create iMacros blocks by 100 drops. Otherwise it will fail.
// Don't forget to fix amount=100 & offset=0 variables for your needs.
delete window.console;
var dropList = [],
delimiter = "\nTAB T=2\nTAG POS=1 TYPE=SPAN ATTR=TXT:Download\nWAIT SECONDS=1\nTAB CLOSE\nTAB T=1";
for(var i in Droplr.DropList.models) {
// Find the drop ID in the list
var dropID = Droplr.DropList.models[i].id;
if(dropList.indexOf(dropID) == -1) { // If ID is not on the list, add it to the list
dropList.push("TAG POS=1 TYPE=A ATTR=TXT:" + dropID);
}
}
// Return the data
console.log("VERSION BUILD=8070701 RECORDER=CR\nURL GOTO=https://d.pr/drops?type=all&amount=100&offset=0&sortBy=creation&order=desc&search=\n" + dropList.join(delimiter + "\n") + delimiter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment