Javascript Code Make Every Webpage Link your Affiliate Link

Javascript Code Make Every Webpage Link your Affiliate Link - This Ingenius Script Below Makes It So That Any/all Links On A Web Page Become Your Affiliate Link And Noone Will Know

Home Short:

This ingenius script below makes it so that any/all links on a web page become your affiliate link and noone will know.

Here is how this link hiding/swapping trick works:

  1. The script scans the page and stores reference to all the links on the web page.
  2. The script stores, in an array, the url of every single one of the web pages links.
  3. The script adds an event listener for all of the links called a mousedown event listener which means that when the web page visitor presses the mouse down on any link on the web page the script instantly swaps the original links url with your affiliate link.
  4. After the web page visitor has clicked on the link, another event listener called onmouseleave, grabs the original url stored in the array and changes the links url back to its original.

What is ingenius about this is because the url of the link is swapped back to its original after the click, the web page visitor will have no idea that your web page is responsible for making every single link on the web page go to url of your affiliate link. The illusion will make the website visitor think its the url that shows in the status bar when they mouse over the link, is the website playing games.

S
H
A
R
E