Skip to content
Steve Lambert edited this page Jan 12, 2015 · 4 revisions

How it works

Add-Art works with AdBlockPlus

  • In artbanners.js our code makes a request for the AdBlockPlus object, then we parasite on it by substituting our function "shouldLoad" for ABP's old "shouldLoad" function.
  • Our new function first calls the old ABP "shouldLoad", which does the heavy lifting of finding out if an object is an ad or not.
  • If the object is an ad we then kick into our art substitution code.
  • We find images in our stuff that matches the dimensions of the object.
  • We pick an image from the best-dimension-matching images using the number we picked earlier.
  • Code returns and firefox functions as normal.

About the shows

A show is made up of 8 sets of images. Each of those need to be cropped into 19 standard banner sizes.

When people click on the images, it can go to more information about the show (this doesn't work consistently).