The Un-Official Proxomitron Forum

Full Version: Youtube: expand video details, collapse comments
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If you prefer to have the video comments collapsed and the video details expanded from the beginning this filter is for you Wink

Code:
[Patterns]
Name = "Youtube: <div> Expand video details, collapse comments {ln}081008"
Active = TRUE
URL = "$TYPE(htm)[^/]++.youtube.com/"
Bounds = "$NEST(<div,>)  $NEST(<div,>)"
Limit = 200
Match = "("
        "((<div class="expand-panel)\1 expanded (small-expand-panel"> *"watch-comment-post-comment"*)\2"
        "$SET(\1=<div class="expand-panel small-expand-panel">))"
        "|"
        "((<div id="watch-video-details" class="expand-panel)\1("> *"watch-video-details-inner"*)\2"
        "$SET(\3= expanded"))"
        ")"
Replace = "\1 \3 \2"
Removed the need of html zone filters $TST(V_Html=1)
Reference URL's