Amazon link redirects

in Script development
Subscribe to Amazon link redirects 1 post, 1 voice

Raam User

Hi All,

my friend has an amazon associate account and when ever I buy anything on amazon I buy it through his link but the problem is that when there amazon link in a website that I like or amazon send deals on email when I click the link it is not opened through his account but direct.

How do I redirect the link automatically to my friends link

say for example:

I want it redirected automatically to

Currently I am using:

var loc = location.href;
if (loc.match(/\/$/))
window.location = '';

which redirects automatically whenever I type in the address bar.

Is this possible? How do I go about doing this?

Awaiting your response!