Greasy Fork is available in English.

FYTE /Fast YouTube Embedded/ Player

На порядок ускоряет время загрузки страниц с большим количеством вставленных Youtube-видео. С первого момента загрузки страницы появляются заглушки для видео, которые можно щелкнуть для загрузки плеера, и почти сразу же появляются кавер-картинки с названием видео. В опциях можно включить режим использования упрощенного браузерного плеера (макс. 720p).

Ниже показаны версии этого скрипта, в которых изменялся код. Показать все версии.

  • v2.9.17 - decode youtube signature
  • v2.9.16 - fix video info parser
  • v2.9.15 - skip nodes with position:fixed and "YouTube on Hover Preview"
  • v2.9.14 - only recreate the YT fullscreen button if there's a parent FYTE instance (which may not be the case if the user excluded the site manually)
  • v2.9.13 - correctly pause/unpause on click in Chrome
  • v2.9.12 - force-enable the fullscreen button
  • v2.9.11 - don't recheck frames/objects take 2
  • v2.9.10 - don't recheck frames/objects
  • v2.9.8 - allow fullscreen and autoplay in new Chrome
  • v2.9.7
  • v2.9.6
  • v2.9.5
  • v2.9.4
  • v2.9.3 - fix videos on play.google.com
  • v2.9.2 - fix resizing of a pinned player
  • v2.9.1 - intercept videos on reddit comment pages
  • v2.9.0.5 - strip "v=" in invalid links like "/embed/v="
  • v2.9.0.4 - also process data-src attributes
  • v2.9.0.3 - reset CSS transform
  • v2.9.0.2 - fix fullscreen
  • v2.9.0.1 - workaround for chrome cssText property bug
  • v2.9.0
  • v2.8.9
  • v2.8.8 - process videos on developers.google.com
  • v2.8.7 - don't add span element for duration if it's unknown
  • v2.8.6 - autocleanup cache; show fps
  • v2.8.5 - clarify video quality option via tooltip
  • v2.8.4 - Add default video quality option
  • v2.8.3 - prevent double activation of iframe player
  • v2.8.2
  • v2.8.1
  • v2.8.0 - fix https://greasyfork.org/en/forum/discussion/21433/
  • v2.7.9 - Fix occasional double-fetching of storyboard thumbnails
  • v2.7.8 - Handle CSS columns to calc the dimensions
  • v2.7.7 - Expand the parent-eating rule to check paddingTop on the parent element itself like https://jakearchibald.com/2016/fun-hacks-faster-content/
  • v2.7.6 - fix theverge videos
  • v2.7.5 - Skip playlist embeds
  • v2.7.4 - exclude some google+ iframes used in youtube's notifications
  • v2.7.3 - Don't try to process non-youtube videos, don't get unneeded info for autoplayed videos
  • v2.7.1 - Fix the first click-to-pin in iframe mode
  • v2.7.0 - edit description
  • v2.6.9 - Don't start dragndrop off the control bar
  • v2.6.8 - Chrome hack to restore autofullscreened iframes
  • v2.6.7 - Delayed cover image display for autoplayed videos
  • v2.6.6 - Keep centering when sizemode=original
  • v2.6.5 - typo
  • v2.6.4 - Cache titles and other info
  • v2.6.3 - Middle-click starts fullscreen playback
  • v2.6.2 - Don't animate background when autoplaying
  • v2.6.1 - Process more OBJECT embeds
  • v2.6.0 - Fix: clicking the title should open a youtube page
  • v2.5.9 - Fix stacking on the bottom, don't stack on self.
  • v2.5.8 - Drag'n'drop zone may be the original placeholder. Add 9gag.
  • v2.5.7 - Add drag'n'drop pinning, make 'pinnable' On, Hide, Off. Show shadow under corner-pinned videos.
  • v2.5.6 - Add transparent corner pins option. TL nanodedup
  • v2.5.5 - Corner pins fade-in/out on hover. Inject styles only if processed videos are present.
  • v2.5.4 - Actually use the 'pinnable' option
  • v2.5.3 - Move pinned directly played videos on top
  • v2.5.2 - Improve the description
  • v2.5.1 - Corner pinning. Fixup: properly cleanup adopted CSS in FF.
  • v2.5.0 - Correctly set title link width. Fix on-resize timer, speedup the adjustment. Parse video size more reliably. Add storyboard element only when data is obtained. Display storyboard thumb to the left of mouse cursor
  • v2.4.9 - Keep display:inline as display:inline-block. Reuse image preloader. Storyboard fixup when part index = 0
  • v2.4.8 - Storyboard click jumps to corresponding time. Spinner fixups. Correctly override existing url params.
  • v2.4.7 - Fix storyboard preview. Show spinner while loading storyboard pic under cursor.
  • v2.4.6 - Show full length storyboard (seekbar preview)
  • v2.4.5 - Compatibility with pre-47 Firefox
  • v2.4.4 - Don't intercept Youtube Link Title
  • v2.4.3 - Fix youtu.be links, add reddit videos. Don't adopt original margin. FF rounding bug fix. Constrain min-width and min-height. Fix embedly's youtube.com%2Fembed.
  • v2.4.2 - Prioritize per-site rules. Work around FF's buggy getElementsByTagName, getComputedStyle. Move our rules to the end of HEAD to increase CSS specificity
  • v2.4.1 - fixup for 'prevent parent clipping'
  • v2.4.0 - Per-site rules (pikabu.ru added). Embed the icon as data url. Code cosmetics.
  • v2.3.9 - Consume parents of retardedly positioned videos. Fade-in black background color from transparent.
  • v2.3.8 - fixup: check googvid.length
  • v2.3.7 - Speedup page loading: reduce time spent in MutationObserver 5x times
  • v2.3.5 - Process autoplay=1 videos
  • v2.3.4 - Add translations: Russian
  • v2.3.3 - Original size mode: never remove parent elements
  • v2.3.2 - Keep parent element if it has a class name or id; strip 'overflow:hidden' from parent chain
  • v2.3.1 - Remove +0.49
  • v2.3.0 - Don't round width and height to integer
  • v2.2.8 - fixup
  • v2.2.7 - Fixed: fresh install
  • v2.2.6 - Process disqus comments, force fullscreen when inside nested iframes
  • v2.2.5 - Inaccessible video background #888
  • v2.2.4 - Gray out inaccessible video placeholders
  • v2.2.3 - Replace 'watch?v=' with 'embed/' when loading iframe player
  • v2.2.2 - Missing ;
  • v2.2.1 - fixup: getComputedStyle is implemented differently in Chrome and Firefox
  • v2.2.0 - Keep some attributes of custom positioned videos
  • v2.1.9 - Fixup of option buttons click
  • v2.1.8 - fixup for google results top video
  • v2.1.7 - Don't force custom size to a multiple of 10
  • v2.1.6 - Google results: process top video match
  • v2.1.5 - Make video player size equal to the FYTE container, so it's autostretched when container size changes
  • v2.1.4 - Adjust height to keep proportions when desired player width is constrained by page layout
  • v2.1.3 - Limit storyboard thumbnail height to 33%
  • v2.1.2 - Force visibility of Play button
  • v2.1.1 - fixup: infinite loop
  • v2.1 - Storyboard thumbnails. Faster title fetching. Fix 'Original' size mode
  • v2.0.2 - fixup: FF options size selector
  • v2.0.1 - fixup: allow click-to-play before video info is fetched
  • v2.0 - Custom size options. Use !important for all CSS. Raise CSS specificity for video/iframe by inlining the styles
  • v1.5.5 - 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 - Use the actual aspect ratio of video to display the thumbnails, add "Safe" option, autoresize videos when browser window size changes
  • v1.5 - Show video title and duration on thumbnails
  • v1.4.4 - Replace entire OBJECT element
  • v1.4.3 - Adjust thumbnail size on DOMContentLoaded
  • v1.4.2 - fixup tooltip text
  • v1.4.1 - fixup: remove "debugger" call
  • v1.4 - Fix options behavior. Autopause other videos when a new video starts to play.
  • v1.3.3 - Support @connect-src
  • v1.3.2 - Rename
  • v1.3.1 - No preemptive fade-out on HTML5 video
  • v1.3 - Fix playback on new Youtube videos + fade-out
  • v1.2.3 - don't process non-video embeddings like that on last.fm
  • v1.2.2 - fix positioning via !important
  • v1.2.1 - increase specificity
  • v1.2 - +option Play directly
  • v1.1.2 - update to setMutationHandler
  • v1.1.1
  • v1.1.0 - fixup
  • v1.0.9 - override site's padding and margin for thumbnail elements
  • v1.0.8 - Remember volume, show option [x] resize to fit
  • v1.0.7 - explicitly set the fonts of the links
  • v1.0.6 - process old flash EMBEDs too
  • v1.0.5 - fixup
  • v1.0.4 - HTML5 mode: show a title on hover with a link to watch on youtube
  • v1.0.3 - don't break frames with autoplay=1
  • v1.0.2 - Add '?' to iframe src if needed
  • v1.0.1 - HTML5 player: better stream selection, should play hd720 by default
  • v1.0