Foxfix
Sunday, 12. August 2007, 01:51:25
The issue that broke Foxnews was so weird that I've analysed it two or three times to be sure. On the face of it, the error was very obvious: the JavaScript console reports that the script tried to use an undefined variable. The hard question was: where was this variable supposed to be defined, and why wasn't it defined in Opera?
It turned out that not just one but a few undefined variables were meant to control the playback of adverts before and after the video contents, and these variables were only set by a certain script sent from the DoubleClick advertising server, and only read by the script embedding the video player. It seemed like DoubleClick had some sort of "bad browser, good browser" logic somewhere, so rather than send us the essential variables they sent a script that just added an old-fashioned ad to the page. I spent quite some time trying to guess the logic - was it user-agent sniffing or something else? - but couldn't quite get to the bottom of it. URLs for most ad-scripts are so hideously complex with tons of parameters - and any parameter, header or cookie might be the cause Opera received the wrong code. I still don't know exactly what caused it..
Browser.js patching appeared impossible, since the patch would have had to guess correct URLs for the video ads meant to run before and after the news.
I was wondering for a while why Foxnews did this. Why on earth make core functionality on your website depend on some random third-party ad server code? Finally the penny dropped: this must be an anti-ad-blocker architecture. If you block scripts from DoubleClick to avoid seeing adverts, the video player won't work..
By kyleabaker, # 12. August 2007, 03:19:46
Why Google bought DoubleClick is beyond me. Seems like a direct contradiction to "do no evil", unless if Google is going to bring DoubleClick to its knees and remove it from the web.
By IceArdor, # 12. August 2007, 06:22:44
BTW, It would be nice among other things to add an "enable/disable" button to the content filter.
And some log to see what particular rules are triggered by the page (helping debugging).
And maybe import/export for the filter list.
Regards.
By LorenzoCelsi, # 12. August 2007, 07:17:13
By TreeGo, # 13. August 2007, 05:54:35
TreeGo: do you get console errors about undefined variables?
By hallvors, # 13. August 2007, 22:54:03
I have my CSS modes set up so I can turn of my CSS filters with one click of a button but sometimes I want to see something thats blocked in my url filter file, not Fox News mind, but other sites and videos.
By piper_noiter, # 15. August 2007, 21:40:40
JavaScript - http://bannerfarm.ace.advertising.com/bannerfarm/279/ScriptCommand.js .... Linked script not loaded
JavaScript - http://bannerfarm.ace.advertising.com/bannerfarm/279/PlayStateChange.js .... Linked script not loaded
JavaScript - http://bannerfarm.ace.advertising.com/bannerfarm/279/tracking.js .... Linked script not loaded
By TreeGo, # 16. August 2007, 05:31:43
By TreeGo, # 16. August 2007, 05:34:50
EDIT:
Don't ask me what happened ... it's working now ... perhaps Opera needs to be closed and re-opened after updating browser.js? Or the FoxNews video player has to be re-opened and closed after updating browser.js?
By TreeGo, # 5. September 2007, 02:21:04
By hallvors, # 5. September 2007, 16:43:12
I'm currently using Opera 9.24 (Build 8816) with Windows XP SP2 (loaded with latest video drivers)
Anything you can share would be appreciated! Cheers!
By Jetxpert, # 21. November 2007, 19:44:33
By hallvors, # 11. December 2007, 12:07:57