YePpHa / YouTubeCenter

YouTube Center is a userscript designed to expand the functionality of YouTube. It includes the ability to download the video you're watching, auto selecting your preferred video quality and much more.
MIT License
2.89k stars 519 forks source link

YouTube just changed something, now WATCHED appears twice #86

Closed 3ICE closed 11 years ago

3ICE commented 11 years ago

Here's a cropped screenshot: image Wasn't like this 10 minutes ago.

3ICE commented 11 years ago

Here's the relevant generated HTML source code:

<a href="http://www.youtube.com/watch?v=sWeVOXpTOhk" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink watched contains-addto ytcenter-thumbnail-ratingcount-pos-bottomleft ytcenter-thumbnail-quality-pos-topleft" data-sessionlink="ei=ggpOUov4K4bciQbt6IHYBg&amp;feature=g-subs-u">    <div class="watched-message">WATCHED</div><span class="video-thumb  yt-thumb yt-thumb-185">
      <span class="yt-thumb-default">
        <span class="yt-thumb-clip">
          <span class="yt-thumb-clip-inner">
            <img data-thumb="//i1.ytimg.com/vi/sWeVOXpTOhk/mqdefault.jpg" alt="Thumbnail" src="//i1.ytimg.com/vi/sWeVOXpTOhk/mqdefault.jpg" width="185">
            <span class="vertical-align"></span>
          </span>
        </span>
      </span>
    </span>
<div class="watched-badge">WATCHED</div><span class="video-time">5:38</span>
<button type="button" class="addto-button video-actions spf-nolink addto-watch-later-button yt-uix-button yt-uix-button-default yt-uix-button-size-small yt-uix-tooltip" title="Watch Later" onclick=";return false;" data-video-ids="sWeVOXpTOhk" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
</span></button>
<span class="video-extras-likes-dislikes ytcenter-video-thumb-hide-hover ytcenter-thumbnail-ratingcount" style="background-color: rgb(0, 0, 0); opacity: 0.75; padding: 0px 4px; line-height: 14px; font-weight: bold; zoom: 1; position: absolute; background-position: initial initial; background-repeat: initial initial;"><img class="" alt="Like" src="data:image/png;base64,-snip-" style="position: relative; margin-right: 2px; margin-top: 4px; top: -2px; vertical-align: middle;"><span class="likes-count" style="margin-right: 4px; color: rgb(255, 255, 255); vertical-align: middle; font-size: 11px;">961</span><img class="" alt="Dislike" src="data:image/png;base64,-snip-" style="position: relative; margin-right: 2px; margin-top: 4px; top: -2px; vertical-align: middle;"><span class="dislikes-count" style="color: rgb(255, 255, 255); vertical-align: middle; font-size: 11px;">9</span></span><div class="video-extras-sparkbars ytcenter-video-thumb-hide-hover" style="position: absolute; bottom: 0px; left: 0px; width: 185px;"><div class="video-extras-sparkbar-likes" style="width: 99.0721649484536%;"></div><div class="video-extras-sparkbar-dislikes" style="background-color: rgb(255, 0, 0); width: 0.9278350515463918%; background-position: initial initial; background-repeat: initial initial;"></div></div><span class=" ytcenter-video-thumb-hide-hover ytcenter-thumbnail-quality" style="background-color: rgb(255, 0, 0); color: rgb(255, 255, 255); background-position: initial initial; background-repeat: initial initial;">1080p</span></a>

I edited out (-snip-) the base64 encoded thumbs up/down images for brevity.

First there is a

<div class="watched-message">WATCHED</div>

and then a

<div class="watched-badge">WATCHED</div>
YePpHa commented 11 years ago

I know about this issue and it's fixed in the dev version.