Links

About Me

Thursday, July 17, 2008

Ok, this isn't GM scripting, it's ad host hunting. If you want to block CNN and Fox News ads put this into your hosts file. Those are zeros BTW.

0.0.0.0 ad.doubleclick.net ads.cnn.com

Now this isn't visually pleasing because it blocks all ads and the page will look outa whack but it works.

Warning: this resolves those hosts to your computer so if your running a web server on your computer it's gona see the traffic. Hmm, you could configure your server to always respond with a blank page for requests from those hosts/domains.

Heh, I decided to get back into some GM scripts starting with the Fox video player. After doing some snooping I realized GM may not be able to do it since it's not a combination flash/JS but completely implemented in flash. So snooping a little traffic I decided to get ad.doubleclick.net out of the way so added a host entry for ad.doubleclick.net to resolve to 0.0.0.0 and low-and-behold the ads are gone. That was easy! :)

Saturday, July 07, 2007

Ok, so I've been using live365 for a while now. By default their player will send a 'silent' stream if you close the player. While on XP, I'm now using Ubuntu, my browser popup blocker would block the onbeforeunload and onunload events so when I closed the player the stream would continue to play. The popup blocker I use for Ubuntu doesn't block the onbeforeunload and onunload so I wrote a GM script to allow you to close the player window and keep the stream playing. Oh, I intergrated the house ad blocker so you don't get nagged to create an account after every 5th stream.