Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pull up an apple music playlist like https://music.apple.com/us/playlist/.../...
- Use the chrome extension "run javascript"
- enter in this code and run it. Check the console for the output.
- Enter list into https://www.spotlistr.com/search/textbox to create a spotify playlist
- var all = $(".songs-list-row__song-name-wrapper").map(function() {
- let data = "";
- let i = 0;
- for (child of this.children) {
- i = i + 1;
- try {
- while (child.hasChildNodes()) {
- let child2 = child.children[0];
- if (child2 == undefined)
- break;
- child = child2;
- } } catch (err){}
- data = child.innerHTML + data;
- if (i == 1) {
- data = " - " + data;
- }
- }
- return data;
- }).get();
- console.log(all.join("\n"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement