views:

57

answers:

2

I have a bunch of this videos on this website with this source:

<li id="vidLink-1498229769" class="videoContainer vidLink">
    <a href="/p/watch/1498229769:GM1ryG4eoTA6sMZV9wtDEpocuehpzDni">
        <span class="content-video-thumb-hover"></span>
        <img src="http://lockerz.vo.llnwd.net/o35/Lockerz/14/593/MEVIO-EmoGirlTV-SavesTheDay-TH1.jpg" id="clThumb_1498229769" class="videoThumb">
    </a>
    <a href="/p/watch/1498229769:GM1ryG4eoTA6sMZV9wtDEpocuehpzDni" class="videoTitle">Emo Girl TV - Saves the Day Interview</a>
                    <span class="PTZ-status PTZ-awarded">PTZ have been awarded for watching this video.</span>

Is it possible to hide the entire id, the vidlink-* part if the span class is that?

<span class="PTZ-status PTZ-awarded">PTZ have been awarded for watching this video.</span>

I want to hide the videos I've already seen in the site (with greasemonkey), but I have no idea how...

+3  A: 

If you're trying to hide the entire vidLink if it contains a .PTZ-status, you can do it like this:

$('.vidLink:has(.PTZ-awarded)').hide();
SLaks
worked good, but when I change the page, the others shows up, guess it's because greasemonkey dont reload like the page... how can I solve this putting all videos in the same page? I have this in the source <input type="hidden" value="12" id="vid_count"><input type="hidden" value="422" id="vid_max"><input type="hidden" value="12" id="vids_per_page">
Shady
This line only hides the elements that currently exist. You need to execute the code again each time the page changes.
SLaks
can't I add some command to change the max videos on the page to like, 100000, so it would be everything only in one page?
Shady
I have no idea. What page?
SLaks
the video page... it contains that 3 input types, that I think is my intent
Shady
I still have no idea. You need to study the page.
SLaks
A: 

hee hee - i'm sure this is an ali-g windup...

jim
i knew that would happen - oh well
jim