adf.ly: Change links in a Web page to show adf.ly ads

Recommend this page to a friend!
     
  Info   View files Files   Download Download   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 adf.ly 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 adf.ly 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 adf.ly system.

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

Details

Adf.ly 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: ['www.testsite.com','*example.com','test.test.com'], 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 ( *example.com matches www.example.com, example.com, foo.bar.baz.example.com) Alternative usage ----------------- var adfly = new Adfly('your_adfly_id', { include : '*example.com' }); adfly.replace(); adfly.options.type = 'banner'; adfly.options.include = '*example.other'; adfly.replace(); License ------- GPL3

  Files folder image Files (8)  
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 README.md Doc. Documentation

  Files folder image Files (8)  /  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 (8)  /  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  
 87%
Total:118
This week:0
All time:389
This week:4Up