Skip to content

Instantly share code, notes, and snippets.

@furahaclothing
Created May 22, 2013 06:12
Show Gist options
  • Save furahaclothing/5625595 to your computer and use it in GitHub Desktop.
Save furahaclothing/5625595 to your computer and use it in GitHub Desktop.
amazon wishlist button
<a href="javascript:(function(){var w=window,l=w.location,d=w.document,s=d.createElement('script'),e=encodeURIComponent,o='object',n='AUWLBook',u='https://www.amazon.com/wishlist/add',r='readyState',T=setTimeout,a='setAttribute',g=function(){d[r]&&d[r]!='complete'?T(g,200):!w[n]?(s[a]('charset','UTF-8'),s[a]('src',u+'.js?loc='+e(l)),d.body.appendChild(s),f()):f()},f=function(){!w[n]?T(f,200):w[n].showPopover()};typeof s!=o?l.href=u+'?u='+e(l)+'&t='+e(d.title):g()}())" ><img src="http://g-ecx.images-amazon.com/images/G/01/gifts/registries/wishlist/uwl/ext/add-to-uwl-txt-md._V191754442_.gif" alt="ほしい物リストに追加する" align="absmiddle" name="Add to Wish List" border="0"></a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment