The Un-Official Proxomitron Forum
Youtube: expand video details, collapse comments - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38)
+--- Forum: Website Customization (/forumdisplay.php?fid=9)
+--- Thread: Youtube: expand video details, collapse comments (/showthread.php?tid=1131)



Youtube: expand video details, collapse comments - lnminente - Oct. 18, 2008 02:50 PM

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"



RE: Youtube: expand video details, collapse comments - lnminente - Oct. 21, 2008 12:18 PM

Removed the need of html zone filters $TST(V_Html=1)