Skip to content

Instantly share code, notes, and snippets.

@BacktickIO
Last active December 29, 2015 16:39
Show Gist options
  • Save BacktickIO/7699000 to your computer and use it in GitHub Desktop.
Save BacktickIO/7699000 to your computer and use it in GitHub Desktop.
Amazon Wish List
(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()
}())
{
"name": "Amazon Wish List",
"description": "Add item to your Amazon Wish List.",
"icon": "https://backtickio.s3.amazonaws.com/icons/amazon.png",
"link": "http://www.amazon.com"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment