Post Reply 
New: Toggle Flash - Patch SWFObject
Apr. 14, 2009, 06:00 PM (This post was last modified: May. 23, 2009 11:40 PM by sidki3003.)
Post: #1
New: Toggle Flash - Patch SWFObject
This filter patches a single script, SWFObject v2.x. However, it's very common and now also hosted at Google AJAX Libraries API.

It is using pure DOM methods for Flash insertion in W3C browsers, so the "<object>...: Toggle Flash" filter has nothing to match. IE users aren't affected, as they still get matchable outerHTML'ed code. (Flash objects inserted by SWFObject v1.x are intercepted already for all browsers.)

The filter is attached. I've placed it in the "Special Purpose" section of the "Web Page Filters" window right below "<object>...: Toggle Flash".

Test links:
http://www.thekingcenter.org/Default.aspx
http://watchmenmovie.warnerbros.com/
http://www.libertatea.ro/
http://www.hirmatrix.hu/
http://www.sport1.de/
http://www.nordlys.no/


edit 4/17: TEST6 -> WIP12
edit 4/18: WIP13
edit 5/24: Add support for Brightcove Experience


Attached File(s)
.txt  swfobject_5-24.txt (Size: 2.25 KB / Downloads: 292)
Add Thank You Quote this message in a reply
Apr. 14, 2009, 09:47 PM
Post: #2
RE: New: Toggle Flash - Patch SWFObject
I forgot to say, this filter is of today, still in test phase, logging to Log-Rare.
What i've posted is TEST6. I'll probably update it later.
Add Thank You Quote this message in a reply
Apr. 17, 2009, 02:30 AM
Post: #3
RE: New: Toggle Flash - Patch SWFObject
Attachment in first post updated to WIP12.

- It didn't work in Chrome (1.0.154.53), because the script is setting the object to visibility:visible, apparently overriding display:none (huh?).

- It didn't handle the fall of Phil Spector (swfobject_2_0.js), nor scripts with unrelated names. So now the filter is enabled for all scripts, which is a wee bit scary, but the matching expression holds thus far.

- Logging to Log-Rare is limited to scripts that aren't named "swfobject", and to functions that don't use the usual variables.
Add Thank You Quote this message in a reply
Apr. 17, 2009, 10:41 PM
Post: #4
RE: New: Toggle Flash - Patch SWFObject
I think I've spotted a site:

http://ingoodhands.com/
Visit this user's website
Add Thank You Quote this message in a reply
Apr. 18, 2009, 03:31 PM
Post: #5
RE: New: Toggle Flash - Patch SWFObject
Whoa, what a CPU hog! Thanks for posting.

WIP13 adds a special case for SWFObject v.2.0 Beta. I'll update the first post shortly.
Add Thank You Quote this message in a reply
May. 23, 2009, 11:42 PM (This post was last modified: May. 24, 2009 12:26 AM by sidki3003.)
Post: #6
RE: New: Toggle Flash - Patch SWFObject
This version fixes a few things and adds support for another popular Flash player, Brightcove Experience.
Just like interception of SWFObject, it isn't required in IE.

Test links:
http://www.accuweather.com/
http://www.army.mil/
http://www.lavanguardiatiendas.com/
http://www.mercurynews.com/
http://www.newsmax.com/
http://www.nme.com/

Attachment in first post updated.
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: