Skip to content

Instantly share code, notes, and snippets.

/dropbox.js

Created Mar 13, 2013
Embed
What would you like to do?
Dropbox Referral Count
function referral_count($) {
if($('#load-more-bonus:visible').length) {
$('#load-more-bonus').click(function() {
setTimeout(test,1000);
});
$('#load-more-bonus').click();
} else {
$('.bonus-row a').filter(function() {
return $(this).text() !== 'Referral' ? 1 : 0;
}).closest('.bonus-row').remove();
console.log($('.bonus-row a').length);
}
}
referral_count(window.jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.