Last active
August 29, 2015 14:24
-
-
Save merqlove/73f08dbcce6184e97cc7 to your computer and use it in GitHub Desktop.
Droplr Export Uids
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
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})); |
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
// 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