Post Reply 
Drag-and-Drop Resizable Flash...
Nov. 29, 2008, 01:04 AM
Post: #31
RE: Drag-and-Drop Resizable Flash...
ProxRocks - I'm glad you got the YouTube thing working.

I decided to play with YouTube to make their videos resizable, but took a different approach. Right before the /body I had my proxy inject inclusion of the genresize.js script and also the following script:
Code:
if (document.getElementsByTagName)
    {
    var a = new Array('object','embed');
    for (var j=0; j < a.length; j++)
        {
        var x = document.getElementsByTagName(a[j]);
        for (var i=0; x && i < x.length; i++)
            {
            x[i].className = 'resizeMe';
            x[i].style.border = '4px solid green';
            }
        }
    }
The above script assigns the resizeMe style class directly to the OBJECT and/or EMBED tags that had been created in the page by YouTube's scripts. It doesn't try to surround them with a SPAN or DIV, just uses whatever's there when it runs at the bottom of the page.

That worked fine in Opera, all videos tested could be resized, some look much better when sized larger. Firefox was another story. The Firefox error console indicates it has issues with the genresize.js script in determining what 'event' means. Also Firefox doesn't draw the border for Flash stuff. I don't have an IE browser capable of running Flash - maybe it will work in IE or maybe not.
Add Thank You Quote this message in a reply
Nov. 29, 2008, 02:20 AM
Post: #32
RE: Drag-and-Drop Resizable Flash...
gonna have to look into this...
i've discovered that it's the div within the textarea that is breaking some "flash detection" scripts, but that with it within the span encasing the textarea (which is where z12 has been telling me to put it anyway, lol) it does NOT break these detection scripts...

but then any dragging of the left or top border causes the flash to vanish...

thanks for the tip, looking into it...

(this has become quite the OCD-project for me, lol...)
[i prefer to call it CDO, btw, alphabetical order...]


follow-up: very cool indeed... and does work in my IE-shell...

the only problem is that this will only work for non-toggled objects/embeds...
in order to toggle them, they already have a class name assigned to it (i think?)...


follow-up #2: at any rate, it seems your method is indeed the best/easiest to resize objects/embeds...
so now it looks like i'm heading back to the drawing board for the toggle-aspect ('cause to me, toggling flashie eyesores is a "must", lol)...
Add Thank You Quote this message in a reply
Nov. 29, 2008, 05:49 AM
Post: #33
RE: Drag-and-Drop Resizable Flash...
Graycode Wrote:Firefox error console indicates it has issues with the genresize.js script in determining what 'event' means.

That script was written for ie, which doesn't follow the w3 event model.
I've thought about redoing it so it would work with firefox too.
Then I could try out ProxRocks filter. Smile!

ProxRocks Wrote:follow-up: very cool indeed... and does work in my IE-shell...

the only problem is that this will only work for non-toggled objects/embeds...
in order to toggle them, they already have a class name assigned to it...

If your using the textarea toggle with my js, class names are irrelevant.
But you couldn't run Graycode's script as is, as the objects don't exist yet.
Their just text inside the textarea.

However, upon conversion of the text to a dom object, js could assign it a classname.
Hopefully, event handlers could be assigned to them at the same time.
That way the generic document.onmouse(up|down|move) event handlers could be removed.

It might also be necessary to eliminate the (span|div) that contains the object.
I'm not sure if those elements would interfere with the resizing.

ProxRocks Wrote:gonna have to look into this...
i've discovered that it's the div within the textarea that is breaking some "flash detection" scripts

Got a link, I'm curious about that.

ProxRocks Wrote:(this has become quite the OCD-project for me, lol...)
[i prefer to call it CDO, btw, alphabetical order...]
CDO ... LOL

z12
Add Thank You Quote this message in a reply
Nov. 29, 2008, 12:47 PM
Post: #34
RE: Drag-and-Drop Resizable Flash...
(Nov. 29, 2008 05:49 AM)z12 Wrote:  However, upon conversion of the text to a dom object, js could assign it a classname.
Hopefully, event handlers could be assigned to them at the same time.
That way the generic document.onmouse(up|down|move) event handlers could be removed.

It might also be necessary to eliminate the (span|div) that contains the object.
you totally lost me...
i caught the "however" part, but everything after it sounds like Greek to me...

Quote:
ProxRocks Wrote:i've discovered that it's the div within the textarea that is breaking some "flash detection" scripts

Got a link, I'm curious about that.

do i? stand by...


color-coding to make it easier to follow...

on this one, the detection is broken, period, has nothing to do with the work in-process... sidki's config set doesn't pass the detection either... detector is actually after you click the 'start online special'... not of concern to me, just an fyi...

http://microsites.audi.com/vdt-onlinespecial/


sites where the detection is broken with the div within the textarea, but that WORKS when the class/id is within the span encasing the textarea...

http://www.micelistudios.com/
http://www.glammfire.com/
http://www.lacoste-future.com/en/
http://www.nationalgridfloe.com/
http://www.bergmann-metallbau.de/
http://www.coca-cola.com/template1/index...index.html
http://www.ourvice.com/
http://www.gettheglass.com/
http://www.helpthehoneybees.com/
http://www.uniqlo.com/us/
http://theovenreinvented.com/
http://www.proxonicvisuals.com/site/
http://adventskalender.ifaw.de/

(i found more, but figured that's more than enough, lol...)


sites that your original filter works on but does NOT work with the div in the textarea OR with the class/id in the span encasing the textarea...

http://www.beside.ca/


sites where all three methods (no resizing, resize within textarea, resize within span) work in the sense of detecting the flash, but that the play button is not clickable (sidki's config's toggle is not clickable either, a "transparent logo" or something of that effect)...

http://www.codingmonkeys.co.uk/


and last but not least, and might even be more important, here's one that flew right by the "toggle: object" filter (all three versions), but that sidki's caught...

http://www.tbwahakuhodo.co.jp/



welp, that aught to be enough for now, lol...

edit: darn, i thought the links were gonna be color-coded also... added "breaks"...

edit2: failed detection also, couldn't track down "why", http://eu.wrangler.com/
Add Thank You Quote this message in a reply
Nov. 29, 2008, 01:23 PM
Post: #35
RE: Drag-and-Drop Resizable Flash...
ProxRocks Wrote:you totally lost me...
i caught the "however" part, but everything after it sounds like Greek to me...

Sorry, I was deep in thought. Smile!
What I meant:
We could probably make Graycode's method work if some filter & js changes are made.

z12
Add Thank You Quote this message in a reply
Nov. 29, 2008, 01:56 PM
Post: #36
RE: Drag-and-Drop Resizable Flash...
"bump" - my follow-up ended up going ABOVE your post (edited, took a while, you stopped by before i hit 'send'), so the 'bump' is just in case you miss the "new" message that really isn't 'new'...
Add Thank You Quote this message in a reply
Nov. 29, 2008, 02:23 PM
Post: #37
RE: Drag-and-Drop Resizable Flash...
Wow, that's quite a list, guess I'll do some snooping.

z12
Add Thank You Quote this message in a reply
Nov. 29, 2008, 02:38 PM
Post: #38
RE: Drag-and-Drop Resizable Flash...
lol, "you asked for it" Big Teeth
Add Thank You Quote this message in a reply
Nov. 30, 2008, 12:29 PM
Post: #39
RE: Drag-and-Drop Resizable Flash...
Well, I'm not anywhere near done checking out your list of problem sites.
But I did get to look at some. Here's some notes on what I found.

ProxRock Wrote:on this one, the detection is broken, period, has nothing to do with the work in-process... sidki's config set doesn't pass the detection either... detector is actually after you click the 'start online special'... not of concern to me, just an fyi...

http://microsites.audi.com/vdt-onlinespecial/
It worked for me. But in a manner of speaking, it failed.
I still don't want to buy an Audi.

http://eu.wrangler.com/
No detection issues here either.

The interesting thing is alot of these sites use basically the same flash script (swfojbect.js).
Why some would give you detection problems and others not is odd.
I'll do some more investigating on this problem later.

ProxRock Wrote:sites where all three methods (no resizing, resize within textarea, resize within span) work in the sense of detecting the flash, but that the play button is not clickable (sidki's config's toggle is not clickable either, a "transparent logo" or something of that effect)...

http://www.codingmonkeys.co.uk/
This appears to be a css issue. The toggle is "behind" the logo image.
Setting a high value for the z-index on the toggle image/link should fix this.

ProxRock Wrote:and last but not least, and might even be more important, here's one that flew right by the "toggle: object" filter (all three versions), but that sidki's caught...

http://www.tbwahakuhodo.co.jp/
Thats an interesting one. It worked for me, but I can see where it wouldn't match for ie.
The closing object tag is missing for the ie code. That's why my filter didn't match.

I debuged the js with sidki's filter.
We both matched the first object element.
His matched the opening object tag for the ie code, but not the following paramter elements.
But sidki's didn't match the following embed code, which mine did match.
Confused? I am.

This site makes me wonder about the whole object/embed matching scheme.
I could probably play with this site for several days trying different code on different browsers.

ProxRock Wrote:sites that your original filter works on but does NOT work with the div in the textarea OR with the class/id in the span encasing the textarea...

http://www.beside.ca/
hmmm...I didn't see a problem, other than my proxMenuIcon kept poping up on top of the toggle button.
After I disabled the menu, all seemed well.

I must not be simulating your replacement code correctly.
Can you post some problem replacement code so I can see what the problem is.

Anyway, your roundup of flash sites is cool, if not somewhat depressing.
I saw enough issues to keep me busy for a while.

z12
Add Thank You Quote this message in a reply
Nov. 30, 2008, 03:11 PM
Post: #40
RE: Drag-and-Drop Resizable Flash...
(Nov. 30, 2008 12:29 PM)z12 Wrote:  http://www.tbwahakuhodo.co.jp/
This site makes me wonder about the whole object/embed matching scheme.
I could probably play with this site for several days trying different code on different browsers.
i must say, i'm totally stumped at this point...
i patiently await the outcome of your research...

Quote:I must not be simulating your replacement code correctly.
Can you post some problem replacement code so I can see what the problem is.
any site in particular?
and i assume you're just wanting to see the object/embed matches and what it is being replaced with...

Quote:Anyway, your roundup of flash sites is cool, if not somewhat depressing.
I saw enough issues to keep me busy for a while.
am i allowed to be "sorry" and "proud" all at the same time, lol...
i mean, it seems we're both 'perfectionists' and want to see the "toggle: object" filter improved upon (my resize wish-list aside, lol)...

at any rate, glad i can assist in the improvements...
but wasn't trying to open a can of worms either, lol...
Add Thank You Quote this message in a reply
Nov. 30, 2008, 04:20 PM
Post: #41
RE: Drag-and-Drop Resizable Flash...
I'd like to see all the variations of replacement code.
Preferably, on a site where all the variations fail.

ProxRocks Wrote:am i allowed to be "sorry" and "proud" all at the same time

LOL

ProxRocks Wrote:at any rate, glad i can assist in the improvements...
but wasn't trying to open a can of worms either, lol...

I'd say your the driving force behind the improvements. Smile!
I enjoy the challange and learn the most from sites where filters fail.
Hopefully the result of this effort will be a better filter.

z12
Add Thank You Quote this message in a reply
Nov. 30, 2008, 05:54 PM
Post: #42
RE: Drag-and-Drop Resizable Flash...
using http://www.beside.ca/main_files/swfobjec...and=dbug.. as a test...

here is sidki's "<object>...: Toggle Flash" match-and-replace:
Code:
<Match: <object>...: Toggle Flash     7.11.09 (ccw! !nn) [jd sd] (d.2 l.2) >
<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>
</Match>
</a><span class=\"ProxFlash&#x20;ProxToggle\" style=\"display:inline\"><img class=\"ProxBcn-Img\" alt=\"about:blank\" src=\"http://local.ptron/killed.gif\" onload=\"prxO.oiFlash=!prxO.oiFlash?1:++prxO.oiFlash;(function(a,b){if(!b.Movie&&!b.SRC)b=b.firstChild;b.rmov=b.Movie||b.SRC;if(b.ReadyState!=4)b.Movie?b.Movie=a.alt:b.SRC=a.alt;})(this,this.parentNode.nextSibling);\" />
<a class=\"ProxToggle&#x20;ProxTogO-A\" href=\"javascript://\" onclick=\"prxO.oInt.inToggleD(this.parentNode,true);\" title=\"embed&nbsp;JS&nbsp;x\">Toggle
</a><a class=\"ProxToggle&#x20;ProxTogO-A\" onmouseover=\"prxO.oInt.inGetFlash(this);\" href=\"about:blank\" title=\"Direct&nbsp;Link\">Flash
</a> </span><span class=\"ProxFlash\" style=\"display:none\"><embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/></span>";
}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_19="
<Match: <object>...: Toggle Flash     7.11.09 (ccw! !nn) [jd sd] (d.2 l.2) >
<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>
</Match>
</a><span class=\"ProxFlash&#x20;ProxToggle\" style=\"display:inline\"><img class=\"ProxBcn-Img\" alt=\"about:blank\" src=\"http://local.ptron/killed.gif\" onload=\"prxO.oiFlash=!prxO.oiFlash?1:++prxO.oiFlash;(function(a,b){if(!b.Movie&&!b.SRC)b=b.firstChild;b.rmov=b.Movie||b.SRC;if(b.ReadyState!=4)b.Movie?b.Movie=a.alt:b.SRC=a.alt;})(this,this.parentNode.nextSibling);\" />
<a class=\"ProxToggle&#x20;ProxTogO-A\" href=\"javascript://\" onclick=\"prxO.oInt.inToggleD(this.parentNode,true);\" title=\"object&nbsp;JS&nbsp;x\">Toggle
</a><a class=\"ProxToggle&#x20;ProxTogO-A\" onmouseover=\"prxO.oInt.inGetFlash(this);\" href=\"about:blank\" title=\"Direct&nbsp;Link\">Flash
</a> </span><object class=\"ProxFlash\" style=\"display:none\" id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}
return _19;

here's your unaltered filter's match-replace:
Code:
<Match: Toggle: Object {4.d.3.2} 20081118 {z12} [add] >
<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>
</Match>
<span class=\"flash437\" style=\"display:inline\"><a title=\"Play Media\" onclick=\"PrxObjToggle(this)\;return false\;\" onmouseover=\"PrxTitleObj(this)\">
<img alt=\"Toggle Media\" src=\"http://local.ptron/My_HTML/43unite_HTML/player_play.png\" style=\"border-style:none\" />
<\/a><br /><\/span><span class=\"flash437\" style=\"display:none\"><textarea style=\"display:none\">
<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/><\/textarea><\/span>";
}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_19="
<Match: Toggle: Object {4.d.3.2} 20081118 {z12} [add] >
<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>
</Match>
<span class=\"flash437453\" style=\"display:inline\"><a title=\"Play Media\" onclick=\"PrxObjToggle(this)\;return false\;\" onmouseover=\"PrxTitleObj(this)\">
<img alt=\"Toggle Media\" src=\"http://local.ptron/My_HTML/43unite_HTML/player_play.png\" style=\"border-style:none\" />
<\/a><br /><\/span><span class=\"flash437453\" style=\"display:none\"><textarea style=\"display:none\">
<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>
<\/textarea><\/span>";}
return _19;

here's the match-replace with the resize div inside the textarea:
Code:
<Match: Toggle: Object {4.d.3.2} 20081118 {z12} [add] [test] >
<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>
</Match>
<span class=\"flash171\" style=\"display:inline\"><a title=\"Play Media\" onclick=\"PrxObjToggle(this)\;return false\;\" onmouseover=\"PrxTitleObj(this)\">
<img alt=\"Toggle Media\" src=\"http://local.ptron/My_HTML/43unite_HTML/player_play.png\" style=\"border-style:none\" />
<\/a><br /><\/span><span class=\"flash171\" style=\"display:none\"><textarea style=\"display:none\">
<div class="resizeMe" id="ResizeDiv"><embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/></div><\/textarea><\/span>";
}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_19="
<Match: Toggle: Object {4.d.3.2} 20081118 {z12} [add] [test] >
<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>
</Match>
<span class=\"flash171171\" style=\"display:inline\"><a title=\"Play Media\" onclick=\"PrxObjToggle(this)\;return false\;\" onmouseover=\"PrxTitleObj(this)\">
<img alt=\"Toggle Media\" src=\"http://local.ptron/My_HTML/43unite_HTML/player_play.png\" style=\"border-style:none\" />
<\/a><br /><\/span><span class=\"flash171171\" style=\"display:none\"><textarea style=\"display:none\">
<div class="resizeMe" id="ResizeDiv"><object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>
</div><\/textarea><\/span>";}
return _19;

and here's the match-replace with the resize div within the span encasing the textarea:
Code:
<Match: Toggle: Object {4.d.3.2} 20081118 {z12} [add] [test] >
<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>
</Match>
<span class=\"flash93\" style=\"display:inline\"><a title=\"Play Media\" onclick=\"PrxObjToggle(this)\;return false\;\" onmouseover=\"PrxTitleObj(this)\">
<img alt=\"Toggle Media\" src=\"http://local.ptron/My_HTML/43unite_HTML/player_play.png\" style=\"border-style:none\" />
<\/a><br /><\/span><span class=\"resizeMe\" id=\"ResizeDiv\" style=\"display:none\">
<textarea style=\"display:none\"><embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/><\/textarea><\/span>";
}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_19="
<Match: Toggle: Object {4.d.3.2} 20081118 {z12} [add] [test] >
<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>
</Match>
<span class=\"flash9393\" style=\"display:inline\"><a title=\"Play Media\" onclick=\"PrxObjToggle(this)\;return false\;\" onmouseover=\"PrxTitleObj(this)\">
<img alt=\"Toggle Media\" src=\"http://local.ptron/My_HTML/43unite_HTML/player_play.png\" style=\"border-style:none\" />
<\/a><br /><\/span><span class=\"resizeMe\" id=\"ResizeDiv\" style=\"display:none\">
<textarea style=\"display:none\"><object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>
<\/textarea><\/span>";}
return _19;

hope that helps, i'm not 100% sure if that's what you were asking for or not...
Add Thank You Quote this message in a reply
Nov. 30, 2008, 08:10 PM
Post: #43
RE: Drag-and-Drop Resizable Flash...
Thoughts:

(Mike, this is after my response to your "I can't believe you said that...." post. Wink Let me just say that you're obviously having fun, doing the detective thing. Kinda wish I could do the same, but alas, the other half has a Honey-Do list longer than both our arms, so my time for this kind of thing is limited! Sad)

So anyway, I remember that ProxRocks once said, and I paraphrase here, "why would I want to use other applications that do what I can already do in Proxo?" Well, one reason I don't put all of my eggs in one basket is called 'the single point of failure' issue. Another reason is sometimes nothing so much as elegance. Note that I define elegance as being the best use of the least resources to get the job done.

Let me point out, Proxrocks, that your submitted filters above are so far out of proportion to the end result that it's no longer possible for me to keep my mouth shut. In the vein of z12's "submit it for everyone to see, maybe we'll learn something", I'm gonna trash your "let Proxo do it all" algorithm, and at the same time, let you in on a little secret......

Go here: NirSoft's Toggle Flash proggie, and see if that doesn't do exactly what you want, without all the fuss of trying to make one filter play nice with another (regardless of who wrote them). I've been using this for years, and I'm here to tell you, it works, 100% of the time, both on my old W98SE box, and now on my XPSP2 box too. Without actually trying the re-size code samples submitted above (sorry, the idea doesn't really make me wanna dance, Dick, but it's got a nice beat!), I'd be willing to bet even odds that at least one of those routines will work perfectly with this tiny app.

HTH



Oddysey

I'm no longer in the rat race - the rats won't have me!
Add Thank You Quote this message in a reply
Nov. 30, 2008, 10:10 PM
Post: #44
RE: Drag-and-Drop Resizable Flash...
hmm, don't mind tryin' it out, i honestly don't...
but honestly, it doesn't solve my problem (locally, yes, but my problem isn't local)...

you may have heard me mention on occasion or two that i use Opera@USB and Portable Firefox, NOT the "installed" versions... the power of GreenBrowser, Sleipnir, and Maxthon are that they are also "portable" (ie, NO registry settings)... (Maxthon to a lesser extent, but IS "portable" AFTER an install [just copy the after-install folder (from a VOS) to a USB, it's "first-run" settings wizard will fail if you simply extract using Universal Extractor, for example]...)

my one-stop "solutionism" as it pertains to Proxo (also PORTABLE) is more out-of-necessity than it is a matter of "preference"...

i don't do "all" of my web browsing on MY computer...
and to me, it's "unethical" to install anything "i want" onto a computer that simply isn't mine ("hey, what did you do to my computer, it hasn't worked right since you last visited?")... my Proxo-on-USB actually bumps up the resolution on whosever machine i'm on at the time to whatever the MAX resolution of their monitor is capable of doing, the owner of that machine may prefer 800x600, but that doesn't mean i want to do ANYTHING at 8x6... close Proxo, their reso returns to normo...


but "all o' that" actually misses the point...
the point actually becomes this - i have a filter project (due to personal preferences/needs, yes), i shared it publicly, a FLAW was discovered in sidki's config, the config is being improved upon (though yes, is gonna take me-and-others some time, the "extent" of the flaw reaches further than we/me expected)...

the success of Proxo relies heavily on publicly shared content...
where would Proxo be without Scott (he didn't have to "publicly share" this fine personal project of his, now did he?), altosax, Jakx ("Jack be Nimble"), Zhen-Xjell, Paul, Arne, Mike Bliv, jayfre, MizzMona, JD5000, sidki(3003|), sankey, and HUNDREDS of others 'from days of fogotten lore'? where would Proxo be? easy, 'quoth the raven, nevermore'...

the success of Proxo has NEVER been it's ability to rewrite the web to each according to each, it's success is directly correlated to publicly-released cofigs and the MAINTENANCE of those publicly-released configs...

maintenance is CRUCIAL...
when we discover a flaw (as this thread has with sidki's flash toggler), keeping that flaw unfixed would be the equivalent of running Scott's "original" config - it worked in the days of its release, but using it would be like using an un-patched OS, regardless of which flavor that OS is, "updates" to it are 'crucial'...


anyway, as Forrest Gump would say, "and that's all i have to say about that"...
Add Thank You Quote this message in a reply
Nov. 30, 2008, 10:15 PM
Post: #45
RE: Drag-and-Drop Resizable Flash...
This is my toggling only filter, i post it here hoping it helps you in something:

It needs HTML zones filters, or just delete "$TST(V_Html=1)"
It will not work for objects writen by javascripts :/
In firefox will not be downloaded until toggled.

Code:
[Patterns]
Name = "<flash> Block by ad-src or offsite with toggle (^Key:Shift){ln}081026"
Active = TRUE
URL = "(^$KEYCHK(^S))$TYPE(htm)(^$LST(Bypass-Ads))"
Bounds = "$NEST(<object,</object>)|$NEST(<embed,>)"
Limit = 800
Match = "(*$NEST(<(param|embed),*((value|src)=$AV((*.swf)\3))*,>)$SET(2=Flash)*)\8"
        ""
        "&(^*\s(height|width)=$AV([#0-1]))"
        "$TST(V_Html=1)"
        "(^$TST(\3=$AV(*$LST(Protect-LinksTo)*)))"
        "("
        "$TST(\3=(*(.|/)($LST(AD-SRC))\9*))$SET(4=Ad-Src :\9)"
        "|"
        "$TST(\3=( \w://(\w://|)(^\h)* ))$SET(4=Offsite: \3)"
        ")"
        "$SET(5=prox)"
        ""
        "$TST(($GET(n)+)=$LST(Count)|*)$SET(n=$GET(i))"
Replace = "<div style="display: none;" name="peProxo_$DTM(c)_$GET(n)" id="peProxo_$DTM(c)_$GET(n)">"
          "\8"
          "<center><img alt="Show/Hide" onclick="toggle_proxomitron('Proxo_$DTM(c)_$GET(n)');" "
          "src="http://local.ptron/plus.gif" name="picProxo_$DTM(c)_$GET(n)" id="picProxo_$DTM(c)_$GET(n)"></center>\r\n"
          "</div>\r\n"
          ""
          "<div style="" name="phProxo_$DTM(c)_$GET(n)" id="phProxo_$DTM(c)_$GET(n)">"
          "<center><span class=\5 style=display:none;>"
          "<a href=\3 target="_top" title="\9: \3"><font color=crimson>[\2 \4]</font></a>"
          "<a href="http://addtolist//proxomitron//\3~reload~\u" "
          "target="_top" title="Add to Protect-LinksTo list"><font color=green>[Protect]</font></a>"
          "<img alt="Show/Hide" onclick="toggle_proxomitron('Proxo_$DTM(c)_$GET(n)');" "
          "src="http://local.ptron/plus.gif" name="picProxo_$DTM(c)_$GET(n)" id="picProxo_$DTM(c)_$GET(n)">\r\n"
          "</span></center></div>\r\n"

This is the content of toggle_script.js
Code:
//  The original name of this script was blockscript.js, i renamed it to toggle_script , added _proxomitron to the name of the functions, and removed same stuff about cookies. Lnminente

var imagepath = "http://local.ptron/";
function xswitch_proxomitron(listID) {
if(listID.style.display=="none") {
listID.style.display="";
} else {
listID.style.display="none";
}
}

function icoswitch_proxomitron(bid) {
icoID = document.getElementById('pic'+bid);
if(icoID.src.indexOf("minus") != -1) {
icoID.src = imagepath+"plus.gif";
} else {
icoID.src = imagepath+"minus.gif";
}
}

//  The original name of the following function was xyzswitch
function toggle_proxomitron(bid) {
xswitch_proxomitron(document.getElementById('ph'+bid+''));
xswitch_proxomitron(document.getElementById('pe'+bid+''));
icoswitch_proxomitron(bid);
}

Add this to your start filters:
Code:
<!-- Inserting the code for toggle -->\r\n
<script type="text/javascript" src="http://local.ptron/toggle_script.js"></script>\r\n

Extra info:
$LST(Protect-LinksTo) It's a list to protect sources
$LST(AD-SRC) It's a list to block ads by their sources. I use another list for hrefs...You don't need to create a list to test the filter, as it is it will match for offsite addresses.
If you want it always match, delete:
Code:
"("
"$TST(\3=(*(.|/)($LST(AD-SRC))\9*))$SET(4=Ad-Src :\9)"
"|"
"$TST(\3=( \w://(\w://|)(^\h)* ))$SET(4=Offsite: \3)"
")"

$SET(5=prox) It's the style to use from proxomitron.css
\8 is the code to toggle
\3 is the address of the source
\9 the word from the ad-list
http://addtolist//proxomitron// is a code matched by another header filter to see de add to list dialog

Ask whatever you want Wink
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: