Post Reply 
[Req] Remove youtube clip ads
Sep. 04, 2008, 09:07 PM
Post: #4
RE: [Req] Remove youtube clip ads
====================USE THIS OR THE ONE FROM KYE-U
This is the filter i will use:
Code:
Name = "<script> Youtube: Kill video-ads {ln,ku}080904"
Active = TRUE
URL = "$TYPE(htm)[^/]++.youtube.com/"
Bounds = "$NEST(<script,</script>)"
Limit = 32767
Match = "((*swfArgs = )\#"
        "($NEST({,})&&("
        "(\#(\"ad_\w*\",))+"
        "\#)))"
        "(* watchDCURL = \")\1*(\";*)"
        "\2"
Replace = "\@ \1 \2"

The reason because i use this and not the one from Kye-U is because of the next filter i use to prevent modifications in scripts:
Code:
Name = "{no_change}<scripts inline> Preserve {ln}080901"
Active = TRUE
URL = "$TYPE(htm)(^*youtube.com*)"
Bounds = "$NEST(<script*,</script>)"
Limit = 32767
Match = "($NEST(<script,\2,>)*)\1"
        "(^$TST(\2=*\ssrc=*))"
Replace = "\1"


=========WORSE FILTERS===============
The next filters are for showing videos with javascript disabled.
_______________________________________________

.- Removing ads but not higher resolution:

Code:
Name = "<div|script> Youtube: Kill video-ads and allowing no javascript {ln}080904"
Active = TRUE
URL = "$TYPE(htm)[^/]++.youtube.com/"
Bounds = "$NEST(<div id="watch-noplayer-div">,</div>)|$NEST(<script,</script>)"
Limit = 1200
Match = "(<d*&$URL(http://www.youtube.com/watch?v=\1) )$SET(\2=<object width="480" height="385"><param value=""
        "http://www.youtube.com/v/\1"
        "&amp;fs=1" name="movie"/><param value="true" name="allowFullScreen"/><embed width="480" height="385" allowfullscreen="true" type="application/x-shockwave-flash" src=""
        "http://www.youtube.com/v/\1"
        "&amp;fs=1"/></object>)"
        "|"
        "(<s*writeMoviePlayer\("watch-player-div"\);*)"
Replace = "\2"


.- Removing ads and seeing in higher resolution:
This filter searchs for the name of the swf file in higher resolution, and follow until the div where the video is inserted. Inserts it there, and adds flashvars with the name of the original swf and a few codes that lets a faster download of the higher quality version. Closes the embed tag and follows to anulate a script wich rewrites the div where video is inserted.

Code:
Name = "<div|script> Youtube HD: Kill video-ads and allowing no javascript {ln}080905b"
Active = FALSE
Multi = TRUE
URL = "$TYPE(htm)[^/]++.youtube.com/"
Limit = 26000
Match = "(($NEST(<script,</script>)&&(*swfUrl \= canPlayV9Swf\(\)  \? '\1' *))*)\2"
        "$NEST(<div id="watch-noplayer-div">,</div>)"
        "(*writeMoviePlayer\(\")\3"
        "watch-player-div"
        "(*</script>)\4"
        "$URL(http://www.youtube.com/watch?v=\5\&*)"
        "$STOP()"
Replace = "\2"
          "<object width="480" height="385"><param value="\1&fs=1" name="movie"/>"
          "<param value="true" name="allowFullScreen"/><embed height="385" width="480" flashvars="&amp;video_id="
          "\5"
          "&amp;fmt_map=18/512000/9/0/115&amp;vq=2"  allowfullscreen="true" quality="high" bgcolor="#FFFFFF" name="movie_player" id="movie_player" "
          "style="" src="http://s.ytimg.com/yt/swf/watch-vfl53733.swf" type="application/x-shockwave-flash"/></object>"
          "\3\4"

It needs the following header filter form Kye-U
Code:
In = FALSE
Out = TRUE
Key = "URL: Youtube: High Quality (ku) (Out)"
URL = "(\w.|)youtube.com/(watch\?v\=|v/)"
Match = "\1((^$TST(\1=*\&fmt=18*))$SET(9=$JUMP(\1&fmt=18))|$SET(9=\1))"
Replace = "\9"
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
[Req] Remove youtube clip ads - Guest - Aug. 29, 2008, 02:01 PM
RE: [Req] Remove youtube clip ads - lnminente - Sep. 03, 2008, 05:55 PM
RE: [Req] Remove youtube clip ads - Kye-U - Sep. 03, 2008, 10:19 PM
RE: [Req] Remove youtube clip ads - lnminente - Sep. 04, 2008 09:07 PM
RE: [Req] Remove youtube clip ads - Guest - Sep. 05, 2008, 11:15 PM
RE: [Req] Remove youtube clip ads - ProxRocks - Sep. 05, 2008, 11:52 PM
RE: [Req] Remove youtube clip ads - lnminente - Sep. 06, 2008, 06:56 PM

Forum Jump: