Leave a Comment

Comments

1
Written by:Adsense IFrame hack
Posted on:December 21, 2005 at 12:42 am

The question is. How to you access that frame source via a javascript?

Obviously you can find all Iframes.
document.getElementsByTagName(”iframe”)

You can then find all iframes that have the name:
“google_ads_frame” (which is what Google calls them)

framevariable.name.indexOf(’google_ads_frame’)

You can then check the source and pull out the “format” variable that Google places in there to see if that specific frame is an Adlinks Iframe or not (in case you were only interested in the AdWords and not the AdLinks).

Ok, so now you have a reference to a specific Google Adsense but now what?

How do you access the same information using the DOM that you did by simply rightclicking the screen to “viewsource”?

I’d pay anyone who could figure that out (though some think you can’t because the Iframe source comes from a different domain as the original javascript). But firefox can obviously pull it. Maybe it is a limitation in javascript.

2
Written by:Mike
Posted on:December 21, 2005 at 2:55 pm

I’d also add to the cash payout to find anyone who can crack it. Would be great to be able to ‘adjust’ the Adsense code that is displayed.