-
Notifications
You must be signed in to change notification settings - Fork 6
/
pandora-export.js
38 lines (35 loc) · 1.19 KB
/
pandora-export.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Create a div covering the entire page
$('body').prepend('<div id="pe-song-list"></div>')
$('#pe-song-list').css('position', 'absolute')
.css('left', 10)
.css('top', 10)
.css('right', 10)
.css('padding', 10)
.css('border', '5px solid #000')
.css('background', '#fff')
.css('color', '#000')
.css('z-index', 99999);
// Find all likes, add line items, delete the like from the page
function findAllSongs(){
$('.infobox-body').each(function(index)
{
var title = $(this).find('h3 a').text();
var artist = $(this).find('p a').first().text();
$('#pe-song-list').prepend('<p>' + artist + ',' + title + '</p>');
$(this).parent().parent().parent().remove();
});
};
// Navigate to the likes page, continually load more likes until none are left
setTimeout(function()
{
$('.myprofile_icon').click();
setTimeout(function()
{
$('#profile_tab_likes').click();
setInterval(function()
{
findAllSongs();
$('.show_more:visible').last().click();
}, 250);
}, 100);
}, 100);