Skip to content

Instantly share code, notes, and snippets.

View jwpeddle's full-sized avatar

Jason Peddle jwpeddle

  • Standard
  • Toronto, ON
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jwpeddle on github.
  • I am jwpeddle (https://keybase.io/jwpeddle) on keybase.
  • I have a public key whose fingerprint is 8B40 3789 5C34 E40D 6C6B ACEC DEB6 01FF 7A57 6936

To claim this, I am signing this object:

walk(document.body);
function walk(node)
{
// I stole this function from here:
// http://is.gd/mwZp7E
var child, next;
switch ( node.nodeType )
@jwpeddle
jwpeddle / rdio playlist export
Last active December 23, 2015 15:09
Export rdio playlist to tab seperated list
javascript:(function() {
track = 'Title\tArtist\tAlbum\tDuration\n';
$('.PlaylistPage .Track')
.each(function() {
info = [];
info.push($(this).find('.name > a').text().trim());
info.push($(this).find('.metadata > a:first').text().trim());
info.push($(this).find('.metadata > a:nth-child(2)').text().trim());
info.push('00:0' + $(this).find('.duration').text().trim());
track += info.join('\t') + '\n';