-
Notifications
You must be signed in to change notification settings - Fork 27
What the files do
Steve Lambert edited this page Jan 12, 2015
·
4 revisions
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.
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).