Last active
December 12, 2015 08:49
-
-
Save iwaffles/4747147 to your computer and use it in GitHub Desktop.
Amazon Affiliates Bookmarklet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var aff = 'igotablog-20'; | |
if (!document.getElementById('ASIN')) { | |
alert('Can\'t find the product ID'); | |
return; | |
} | |
var asin = document.getElementById('ASIN').value; | |
prompt( | |
'Here is the link:', | |
'http://www.amzn.com/' + asin + '/?tag=' + aff); | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment