// First dump
var amount = 100;
var coll = Droplr.DropList;

function fetchNext() {

  coll.fetch({
    data: {
      type: coll.type,
      amount: amount,
      offset: coll.offset,
      sortBy: coll.sortBy,
      order: coll.order,
      search: coll.search
    },
    update: !0,
    remove: !1,
    success: function(t, n) {
      coll.offset += amount;
      if (n.length !== 0) {
        console.log('Loading...', coll.offset);
        setTimeout(fetchNext, 100);
      } else {
        console.log('Done! Now copy/paste and run the following command:');
        console.log('copy(JSON.stringify(coll.pluck(\'code\'), null, 2));console.log("Drops successfully copied to clipboard!");')
      }
    }
  })
}

fetchNext();

// First dump
var amount = 100;
var coll = Droplr.DropList;

function fetchNext() {

  coll.fetch({
    data: {
      type: coll.type,
      amount: amount,
      offset: coll.offset,
      sortBy: coll.sortBy,
      order: coll.order,
      search: coll.search
    },
    update: !0,
    remove: !1,
    success: function(t, n) {
      coll.offset += amount;
      if (coll.offset === amount) {
        alert('Loading... Press <enter> to continue.');
      }
      if (n && n.length !== 0) {
        setTimeout(fetchNext, 100);
      } else {
        alert('Done! Now copy/paste and run the following command:');
        alert('copy(JSON.stringify(coll.pluck(\'code\'), null, 2));alert("Drops successfully copied to clipboard!");')
      }
    }
  })
}

fetchNext();

Make sure `n` is defined and use `alert`
Make sure `n` is defined and use `alert`

Checking that `n` is not undefined before calling `n.length` prevents an exception. Droplr now also overrides `console.log` (and other console functions) so changed it to `alert`.