Post Reply 
Youtube flash detection
Apr. 03, 2009, 08:40 AM
Post: #3
RE: Youtube flash detection
shezam;

I used to to get that error too, all the time with the stupid and incorrect messages - ARGH! Wink


So I did my usual dissection thing, and figured out how to bypass all of Google's crap. Here's what I came up with:

Code:
Name = "force youtube to play nice!"
Active = TRUE
Limit = 1024
Match = "<div id="watch-noplayer-div">*<noscript>*</div>"
Replace = "<embed src=embedURL>"


Discussion:

The Match string shown appears on the page whether your Flash proggie passes or fails the version test. It is displayed depending on the test results, but fortunately for us, we don't care about that - we have something reliable to match on. The Replace string inserts the source into the page, seemingly right over the top of the wording. At least for me, the video is displayed and it auto-starts as expected. That's probably all we can ask for, eh? Big Teeth

The Replace string comes from a variable named in a script in the Head section of the page. Properly speaking, the <embed> statement should be terminated with a closing tag, but IE is very forgiving. Append one if you wish, or if your browser chokes. Also, some browsers may not handle the <embed> element - just use <object> instead of <embed>, you'll get the same results.

Note that all my usual filtering is active - Proxo is preventing my eyeballs from going insane with the ads and junk. Sinister

Lastly, I do have to allow Google/YouTube to deposit a cookie on my machine, but that's almost not worth worrying about, there are so many ways to deal with cookies in general, and Google one's in particular.

HTH



sumgai

I'm no longer in the rat race - the rats won't have me!
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Youtube flash detection - shezam - Apr. 01, 2009, 09:55 AM
RE: Youtube flash detection - sidki3003 - Apr. 01, 2009, 11:46 AM
RE: Youtube flash detection - Oddysey - Apr. 03, 2009 08:40 AM
RE: Youtube flash detection - lnminente - Apr. 03, 2009, 10:01 AM
RE: Youtube flash detection - bugger - Jun. 06, 2009, 12:00 AM
RE: Youtube flash detection - Toppy - Jun. 06, 2009, 05:52 AM
RE: Youtube flash detection - Siamesecat - Jun. 06, 2009, 06:01 AM

Forum Jump: