// This script is obsolete, as ABC Family has fixed its site.  It will
// remain here as an example of faking navigator.plugins.

// ==UserScript==
// @name           abcfamily.go.com Flash Player Detection Fix
// @namespace      http://freecog.net/2006/
// @description    Makes abcfamily.go.com think that Flash player 8 is installed.  This is useful since their detection code is completely idiotic--it chokes if you have version 9 installed--and they redirect you to a page telling you to install the plugin.  Turing off JavaScript doesn't work, since their site is so badly constructed as to be useless without it.  Note: an error is thrown by the "hbox" stat script--as best I can tell, it's just setting a cookie, so I'm not going to bother fixing it.
// @include       *abcfamily.go.com*
// ==/UserScript==

(function(){

unsafeWindow.navigator.__defineGetter__("plugins", function() {
	//GM_log("Fixing plugins.");
	return {
		'Shockwave Flash': {
			'description': '8.'
		},
		'length': 1,
		'1': {
			'name': 'Shockwave Flash',
			'description': 'flash 8.0'
		}
	};
});

})();