Post Reply 
Youtubes new ads
Dec. 05, 2009, 12:48 AM (This post was last modified: Mar. 02, 2010 12:37 AM by WombatFromHell.)
Post: #6
RE: Youtubes new ads
After some experiments I came up with a better solution that seems to work for now (with the exception of Feather).

Code:
[Patterns]
Name = "Youtube: Remove Pre-roll Ads"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)(\w.|)youtube.com/"
Bounds = "((('|")swf_args('|"):|var swfArgs =) {*}(;|,))"
Limit = 20000
Match = "(\# ((,|)"ad_*"|"invideo"|"instream"|"autoplay"|"prerolls"|"infringe"|"watermark"|"vq"): $AV(*)(,|)+)+ "
        "($SET(\#="ad_module": "", "instream": "false", "invideo": "false", "watermark": "", "vq": "hd720",)) \#"
Replace = "\@"

Edit: Updated again to catch a new swfArgs method in some user page videos. This version also defaults to 720p in both the user and regular video pages. If you don't want that behavior just remove the "vq" bits.
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Youtubes new ads - bugger - May. 27, 2009, 12:51 PM
RE: Youtubes new ads - bugger - Jul. 14, 2009, 08:46 AM
RE: Youtubes new ads - Toppy - Jul. 14, 2009, 05:53 PM
RE: Youtubes new ads - bugger - Jul. 14, 2009, 10:47 PM
RE: Youtubes new ads - WombatFromHell - Nov. 10, 2009, 05:07 AM
RE: Youtubes new ads - WombatFromHell - Dec. 05, 2009 12:48 AM
RE: Youtubes new ads - bugger - Apr. 29, 2010, 05:16 AM
RE: Youtubes new ads - WombatFromHell - Apr. 30, 2010, 02:09 AM
RE: Youtubes new ads - bugger - Apr. 30, 2010, 10:18 PM
RE: Youtubes new ads - wammie - Oct. 15, 2010, 04:06 AM

Forum Jump: