Skip to content

Instantly share code, notes, and snippets.

@Vazkii
Created January 11, 2015 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vazkii/ed061cdc63eda437dd8b to your computer and use it in GitHub Desktop.
Save Vazkii/ed061cdc63eda437dd8b to your computer and use it in GitHub Desktop.
eBay Share Shopping Cart
// This is a script you can add as an URL for a bookmark
// It'll generate a copy-pastable list of things in your shopping cart
// Script:
javascript:var total='<br><b>Share</b><br>';$('.sci-itmttl a').each(function(i){total+=($(this).text()+': '+$(this).attr('href')+'<br>');});$('.mb15:first').parent().append(total);
// Non-minimized code:
var total='<br><b>Share</b><br>';
$('.sci-itmttl a').each(function(i) {
total+=($(this).text() + ': ' + $(this).attr('href')+ '<br>');
});
$('.mb15:first').parent().append(total);
// Yes, ebay's class names are odd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment