FYTE /Fast YouTube Embedded/ Player

Hugely improves load speed of pages with lots of embedded Youtube videos by instantly showing clickable and immediately accessible placeholders, then the thumbnails are loaded in background. Optionally a fast simple HTML5 direct playback (720p max) can be selected if available for the video.

These are versions of this script where the code was updated. Show all versions.

  • v2.4.0 2016-07-25 Per-site rules (pikabu.ru added). Embed the icon as data url. Code cosmetics.
  • v2.3.9 2016-07-25 Consume parents of retardedly positioned videos. Fade-in black background color from transparent.
  • v2.3.8 2016-07-25 fixup: check googvid.length
  • v2.3.7 2016-07-25 Speedup page loading: reduce time spent in MutationObserver 5x times
  • v2.3.5 2016-07-24 Process autoplay=1 videos
  • v2.3.4 2016-07-24 Add translations: Russian
  • v2.3.3 2016-07-23 Original size mode: never remove parent elements
  • v2.3.2 2016-07-22 Keep parent element if it has a class name or id; strip 'overflow:hidden' from parent chain
  • v2.3.1 2016-07-22 Remove +0.49
  • v2.3.0 2016-07-21 Don't round width and height to integer
  • v2.2.8 2016-07-21 fixup
  • v2.2.7 2016-07-21 Fixed: fresh install
  • v2.2.6 2016-07-21 Process disqus comments, force fullscreen when inside nested iframes
  • v2.2.5 2016-07-20 Inaccessible video background #888
  • v2.2.4 2016-07-20 Gray out inaccessible video placeholders
  • v2.2.3 2016-07-20 Replace 'watch?v=' with 'embed/' when loading iframe player
  • v2.2.2 2016-07-20 Missing ;
  • v2.2.1 2016-07-19 fixup: getComputedStyle is implemented differently in Chrome and Firefox
  • v2.2.0 2016-07-19 Keep some attributes of custom positioned videos
  • v2.1.9 2016-07-19 Fixup of option buttons click
  • v2.1.8 2016-07-19 fixup for google results top video
  • v2.1.7 2016-07-19 Don't force custom size to a multiple of 10
  • v2.1.6 2016-07-18 Google results: process top video match
  • v2.1.5 2016-07-18 Make video player size equal to the FYTE container, so it's autostretched when container size changes
  • v2.1.4 2016-07-17 Adjust height to keep proportions when desired player width is constrained by page layout
  • v2.1.3 2016-07-15 Limit storyboard thumbnail height to 33%
  • v2.1.2 2016-07-15 Force visibility of Play button
  • v2.1.1 2016-07-15 fixup: infinite loop
  • v2.1 2016-07-15 Storyboard thumbnails. Faster title fetching. Fix 'Original' size mode
  • v2.0.2 2016-07-11 fixup: FF options size selector
  • v2.0.1 2016-07-11 fixup: allow click-to-play before video info is fetched
  • v2.0 2016-07-11 Custom size options. Use !important for all CSS. Raise CSS specificity for video/iframe by inlining the styles
  • v1.5.5 2016-07-10 fixed some issues with 4:3 embeds, [x]resize now keeps the clicked video's center at a relatively same window position
  • v1.5.4 2016-07-09 Use the actual aspect ratio of video to display the thumbnails, add "Safe" option, autoresize videos when browser window size changes
  • v1.5 2016-06-30 Show video title and duration on thumbnails
  • v1.4.4 2016-03-11 Replace entire OBJECT element
  • v1.4.3 2016-02-04 Adjust thumbnail size on DOMContentLoaded
  • v1.4.2 2016-01-18 fixup tooltip text
  • v1.4.1 2016-01-18 fixup: remove "debugger" call
  • v1.4 2016-01-18 Fix options behavior. Autopause other videos when a new video starts to play.
  • v1.3.3 2016-01-18 Support @connect-src
  • v1.3.2 2015-12-19 Rename
  • v1.3.1 2015-12-19 No preemptive fade-out on HTML5 video
  • v1.3 2015-12-19 Fix playback on new Youtube videos + fade-out
  • v1.2.3 2015-11-10 don't process non-video embeddings like that on last.fm
  • v1.2.2 2015-11-10 fix positioning via !important
  • v1.2.1 2015-11-08 increase specificity
  • v1.2 2015-10-24 +option Play directly
  • v1.1.2 2015-10-12 update to setMutationHandler
  • v1.1.1 2015-08-25

Show all script versions