Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Download all CSV #2

Open
chazkii opened this issue Jan 7, 2015 · 3 comments
Open

Enhancement: Download all CSV #2

chazkii opened this issue Jan 7, 2015 · 3 comments

Comments

@chazkii
Copy link
Contributor

chazkii commented Jan 7, 2015

As a lazy person, I would like to simply download all playlists as separate CSVs for backup/archives purposes in one click.

When I get time to do it, I can assign this to myself. May be in a weeks time or so.

@jal278
Copy link
Owner

jal278 commented Feb 4, 2015

Great! That would be a very nice feature

@bslatkin
Copy link

Here's my really hacky work-around to make the UI load everything. You paste this into the console:

$.fn.simulateClick = function() {
    return this.each(function() {
        if('createEvent' in document) {
            var doc = this.ownerDocument,
                evt = doc.createEvent('MouseEvents');
            evt.initMouseEvent('click', true, true, doc.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
            this.dispatchEvent(evt);
        } else {
            this.click(); // IE
        }
    });
}

window.TryAgain = function() {
  var x = $('.load:contains("More")');
  if (x.length == 0) {
    return;
  }
  x.simulateClick();
  window.setTimeout(TryAgain, 2000);
};

TryAgain()

@itsbrex
Copy link

itsbrex commented Sep 28, 2016

@bslatkin I can't seem to get that code to work. Console isn't showing any errors, it's just not doing anything. Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants