Change links in a Web page to show ads

Recommend this page to a friend!
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 118 All time: 389 This week: 4Up
Version License JavaScript version Categories
adfly 1.0GNU General Publi...1.0HTML
Description Author

This object can change links in a Web page to show ads.

In can traverse the list of external links of a Web page and change the href attribute URL, so the user is routed to the advertising system when the changed links are clicked.

The changed links include the publisher identifier, so the advertising revenue can be shared with the publisher.

The type of ad that can be shown to the user is configurable.

The object can also exclude certain domains from being routed through the system.

Picture of Gergely Aradszki
Name: Gergely Aradszki <contact>
Classes: 1 package by
Country: Hungary Hungary
Age: 37
All time rank: 1534 in Hungary Hungary
Week rank: 6 Up2 in Hungary Hungary Up

Details link changer script ========================== Usage ----- Include js: `<script type="text/javascript" src="adfly.js" ></script>` Init script (at the bottom of the page, preferably just before the &lt;/body&gt;): `Adfly('your_adfly_id', {options});` Example ------- Adfly('your_adfly_id', { exclude: ['','*',''], type : 'banner' }); Options ------- * include: domains to include [str|array] defaults to '*' * exclude: domains to exclude [str|array] * parent: element in which to change links [DOM Element] defaults to document * type: ad type [int|banner] defaults to int Include & exclude accepts '*' as a wildcard ( * matches,, Alternative usage ----------------- var adfly = new Adfly('your_adfly_id', { include : '*' }); adfly.replace(); adfly.options.type = 'banner'; adfly.options.include = '*example.other'; adfly.replace(); License ------- GPL3
  Files folder image Files  
File Role Description
Files folder imagetests (2 files, 1 directory)
Plain text file adfly.js Class Class source
Plain text file adfly.min.js Class minified
Accessible without login HTML file index.html Doc. Documentation
Accessible without login Plain text file Doc. Documentation

  Files folder image Files  /  tests  
File Role Description
Files folder imagequnit (2 files)
  Accessible without login Plain text file run-qunit.js Test Unit test script
  Accessible without login HTML file testSimple.html Doc. Documentation

  Files folder image Files  /  tests  /  qunit  
File Role Description
  Accessible without login Plain text file qunit.css Data Auxiliary data
  Accessible without login Plain text file qunit.js Aux. Auxiliary script

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:389
This week:4Up