Post Reply 
Speaking of YouTube.......
Nov. 16, 2008, 03:52 PM
Post: #3
RE: Speaking of YouTube.......
here it is (it looks more complex than it is, bear with me, i'm all but convinced that this is a MUST-HAVE and will break the 'install' down step-by-step)...

1) first you will need this filter, place it directly BELOW sidki's "Header Top Add: Initial JS Code 7.11.29 (ccw! !mos) [...] (d.r)"
Code:
Name = "Header Top Add: User JS Code - z12 Toggle Objects [add]"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 16
Match = "(^(^<ProxHdrTop>))$STOP()"
Replace = "\t<script type="text/javascript" src="http://local.ptron/My_HTML/z12_HTML/z12.js">\r\n\t</script>\r\n"

2) observe the folder structure, 'cause you'll need the below-attached three two files (.zip'd here as one attachment) saved within that folder...

3) next are these two filters (i actually only use the SECOND of the two [note that the first uses the "camera.jpg" from the .zip, so if you put it into a different folder, alter the first of two filters accordingly])...

i have these placed directly ABOVE sidki's "<object>...: Toggle Flash 7.11.09 (ccw! !nn) [jd sd] (d.2 l.2)"...
Code:
Name = "Object to Img {z12} [add]"
Active = FALSE
URL = "($TYPE(htm)|$TYPE(js)|$TYPE(vbs))"
Bounds = "(<object*/ object >|<embed[^<]++>(^ [a-z0-9])( </embed >)+)(^ </object >)(^ </textarea>)"
Limit = 4096
Match = "\#"
        "&(*(\" \'|\' \"|\\"|= " \+|" <|> ")$SET(1=\\")|*\s(codebase|type|src)=(")\1)|$SET(1=")"
Replace = "<span>"
          "<textarea style=\1display:none\1>\@</textarea>"
          "<img"
          " style=\1cursor:pointer\1"
          " onclick=\1proxo.imgToFlash(this)\1"
          " src=\1http://local.ptron/My_HTML/z12_HTML/camera.jpg\1"
          " onmouseover=\1proxo.titleFlash(this)\1"
          " />"
          "</span>"

Name = "Toggle: Object {4.d.3.2} 20081118 {z12} [add]"
Active = TRUE
URL = "($TYPE(htm)|$TYPE(js)|$TYPE(vbs))(^$TST(keyword=*.flash.*))"
Limit = 5120
Match = "("
        "("
        "$NEST(<object(\s|"),"+</object >)|"
        "<object(^[a-z])(*/ object >&&(^*<object)*)|"
        "<embed(^[a-z])*>(^ [=a-z0-9])( </embed >)+"
        ")\0(^ </object >)(^ </textarea>)"
        "&&"
        "(^*(type=$AV(image/*)))"
        "*)"
        "$SET(flash=$GET(flash)$DTM(t))"
        "(($TST(script=*))$SET(1=\\")$SET(2=\\)|$SET(1=")$SET(2=))"
Replace = "<span class=\1flash$GET(flash)\1 style=\1display:inline\1>"
          "<a title=\1Play Media\1 onclick=\1PrxObjToggle(this)\2;return false\2;\1 onmouseover=\1PrxTitleObj(this)\1>"
          "<img alt=\1Toggle Media\1 src=\1http://local.ptron/Grypen_HTML/imgs/player_play.png\1 style=\1border-style:none\1 /><\2/a>"
          "<br />"
          "<\2/span>"
          "<span class=\1flash$GET(flash)\1 style=\1display:none\1>"
          "<textarea style=\1display:none\1>\0<\2/textarea>"
          "<\2/span>"

4) now, for us sidki-based configs, note that it references a Grypen .png and observe its folder structure... this is attached as a .zip as well... there are TWO .png's, even though the filter actually only references one of the two [BOTH are referenced by z12.js (so again, if you place in a different folder, be sure to "point to it" by the filter AND z12.js {which seems to be written to "self-discover" that folder, as i don't recall making changes to the .js})]...

confirmed! z12.js "self-discovers" to the folder that player_play.png is pointed to...
you do not need to edit z12.js if you use a different folder structure... (unless you change the NAME of the .png's)



ps: the "flash_rune.gif" is used by an older version of z12.js, you can delete that file, my bad...


edit: edited for z12's equal sign mentioned below (and dated the filter to the posting date)...

edit2: updated byte limit (and date)...


Attached File(s)
.zip  z12_HTML.zip (Size: 5.03 KB / Downloads: 1006)
.zip  imgs.zip (Size: 1.71 KB / Downloads: 983)
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Speaking of YouTube....... - Oddysey - Nov. 16, 2008, 05:57 AM
RE: Speaking of YouTube....... - 43unite - Nov. 16, 2008, 12:22 PM
RE: Speaking of YouTube....... - Graycode - Nov. 17, 2008, 06:02 PM
RE: Speaking of YouTube....... - ProxRocks - Nov. 17, 2008, 07:09 PM
RE: Speaking of YouTube....... - 43unite - Nov. 17, 2008, 07:23 PM
RE: Speaking of YouTube....... - ProxRocks - Nov. 16, 2008 03:52 PM
RE: Speaking of YouTube....... - 43unite - Nov. 17, 2008, 04:59 AM
RE: Speaking of YouTube....... - whenever - Nov. 29, 2008, 04:56 AM
RE: Speaking of YouTube....... - z12 - Nov. 16, 2008, 10:15 PM
RE: Speaking of YouTube....... - ProxRocks - Nov. 16, 2008, 10:55 PM
RE: Speaking of YouTube....... - z12 - Nov. 16, 2008, 11:16 PM
RE: Speaking of YouTube....... - Siamesecat - Nov. 17, 2008, 06:40 AM
RE: Speaking of YouTube....... - Oddysey - Nov. 17, 2008, 07:11 AM
RE: Speaking of YouTube....... - Oddysey - Nov. 17, 2008, 07:39 AM
RE: Speaking of YouTube....... - ProxRocks - Nov. 17, 2008, 12:11 PM
RE: Speaking of YouTube....... - Oddysey - Nov. 18, 2008, 08:37 PM
RE: Speaking of YouTube....... - 43unite - Nov. 17, 2008, 01:16 PM
RE: Speaking of YouTube....... - ProxRocks - Nov. 17, 2008, 01:20 PM
RE: Speaking of YouTube....... - 43unite - Nov. 17, 2008, 01:24 PM
RE: Speaking of YouTube....... - ProxRocks - Nov. 17, 2008, 01:35 PM
RE: Speaking of YouTube....... - 43unite - Nov. 17, 2008, 01:52 PM
RE: Speaking of YouTube....... - ProxRocks - Nov. 17, 2008, 03:10 PM
RE: Speaking of YouTube....... - 43unite - Nov. 17, 2008, 04:23 PM
RE: Speaking of YouTube....... - lnminente - Nov. 17, 2008, 06:26 PM
RE: Speaking of YouTube....... - ProxRocks - Nov. 17, 2008, 07:37 PM
RE: Speaking of YouTube....... - 43unite - Nov. 17, 2008, 07:58 PM
RE: Speaking of YouTube....... - Oddysey - Nov. 17, 2008, 10:41 PM
RE: Speaking of YouTube....... - Oddysey - Nov. 17, 2008, 10:43 PM
RE: Speaking of YouTube....... - 43unite - Nov. 17, 2008, 11:49 PM
RE: Speaking of YouTube....... - Oddysey - Nov. 18, 2008, 01:35 AM
RE: Speaking of YouTube....... - 43unite - Nov. 18, 2008, 04:33 AM
RE: Speaking of YouTube....... - 43unite - Nov. 18, 2008, 03:39 PM
RE: Speaking of YouTube....... - ProxRocks - Nov. 18, 2008, 09:03 PM
RE: Speaking of YouTube....... - z12 - Nov. 19, 2008, 03:26 AM
RE: Speaking of YouTube....... - ProxRocks - Nov. 19, 2008, 11:24 AM
RE: Speaking of YouTube....... - ProxRocks - Nov. 29, 2008, 12:38 PM
RE: Speaking of YouTube....... - whenever - Nov. 29, 2008, 12:57 PM
RE: Speaking of YouTube....... - ProxRocks - Nov. 29, 2008, 02:07 PM
RE: Speaking of YouTube....... - lnminente - Nov. 29, 2008, 01:03 PM
RE: Speaking of YouTube....... - whenever - Nov. 29, 2008, 02:43 PM
RE: Speaking of YouTube....... - ProxRocks - Nov. 29, 2008, 03:05 PM
RE: Speaking of YouTube....... - lnminente - Nov. 29, 2008, 03:54 PM
RE: Speaking of YouTube....... - lnminente - Jan. 16, 2009, 06:39 PM
RE: Speaking of YouTube....... - Siamesecat - Jan. 18, 2009, 06:48 AM

Forum Jump: