http://www.amazon.com/dp/product/[Product ID]/?tag=[Affiliate Tag]
I'm thinking it should be easy to do a look replace, but can someone do some hand holding and point me in the right direction? My java-fu is weak.
what about something like this
This is your chrome extension manifest
"name": "Amazon Auto Affiliate",
"version": "1.0",
"description": "Adds an extension to change all amazon links to amazon links with your affiliate info.",
"content_scripts": [
{
"css": ["mystyles.css"],
"js": ["jquery.js", "myscript.js"],
"run_at" : "document_end"
}
]
}
var affiliateCode = 'myafflicatecode'
onload = function () {
for (var i = 0; i < document.links.length; i++)
if (document.links[i].href.contains("amazon.com")) {
document.links[i].href = document.links[i].href +'?tag=' + affiliateCode
}
}
This should get you started with the basic framework....good luck.