Skip to content

Instantly share code, notes, and snippets.

@herestomwiththeweather
Created June 13, 2010 05:17
Show Gist options
  • Save herestomwiththeweather/436374 to your computer and use it in GitHub Desktop.
Save herestomwiththeweather/436374 to your computer and use it in GitHub Desktop.
javascript:(function(){ asset_urls = [];var links = document.getElementsByTagName("a");for(var i=0;i<links.length;i++){if (links[i].getAttribute('rel') == 'payment') { asset_urls.push(links[i].getAttribute('href'));}} window.name = 'receiver'; var remoteWin=window.open('','','resizable=yes,width=550,height=550'); remoteWin.document.write('<html><body>'); for(var j=0;j<asset_urls.length;j++){remoteWin.document.write('<a href="' + asset_urls[j] + '/new?to=' + encodeURIComponent(window.location.href) + '">' + asset_urls[j] + '</a><br><br>');} remoteWin.document.write('') })();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment