I was looking at the friends list option where you have to type your friends in and so I looked at my adv log and there's an aptly named object (friends) that contains this information. I don't have a long enough list to fully test it, so part of it was done on the assumption of how it'd work, but I
think
it'll work regardless:
$('.tabbednav__list').append('<div id="export_fl"><input type="button" onclick="get_friends()" value="Export Friends"></div>');
var fr = friends.results, key, key2, friends_list = '';
function get_friends() {
for (key in fr)
for (key2 in fr[key].friends)
friends_list += '\n' + fr[key].friends[key2].name;
$('#export_fl').html('<textarea>' + friends_list.substr(1) + '</textarea>');
}
That will add a button to the right of the friends tab that when clicked will turn into a textarea with the friends list already formatted properly for copying. I did this very late at night so I put zero effort into making it pretty or adding frilly features (like one click copying and such); you can get the gist of it from that and the core functionality is there.
20-Sep-2014 07:55:12