Large

Kongregate YouTube Link Magics

By doomcat Last update Nov 28, 2011 — Installed 1,377 times.

Script Summary: Makes YouTube links on Kongregate chat much more tolerable in chat and makes all links clickable. Builds from Ventero's framework.



Version: 0.22

I've begun working on a Flash game with some others from Kongregate, and that will probably eat up the minimal free time I was using to work on this script. If you have urgent bugs, make sure to post them on my Kongregate shoutbox.

If you decide to update this script yourself, let me know, and I'll gladly post stable changes back into this baseline.

What it does: This script checks chat messages for urls and converts them to clickable links in the chat. For YouTube links, it fetches the video name and uses that as the link text so you know what video you're clicking on before you actually load the video. Additionally, it puts a small version of the video in a "video tray" which can be accessed by clicking a triangle in the top right corner of the screen (or the "Toggle Video Area" script command). If the video doesn't allow embedding, the link name will let you know, and no video will appear in the tray.

To run this script, you MUST have Ventero's Kongregate framework script installed. May get away from the framework eventually, but it works for now.

I've also been told to recommend Ventero's Fullscreen Chat Plugin, but since the videos are playing in the tray right now, it's not so necessary. Be aware, this is still alpha release type stuff. With that in mind, here are some known bugs:
  1. Lots of reports of general failure on Chrome
  2. Can't remove videos from video area
  3. Doesn't detect links in other parts of Kong
  4. Parse additional types of YouTube links
  5. Should only add videos to bar from user's current chat room (i.e. either "room chat" or "game chat" but not both)
  6. Script should notify users of new script versions and offer to auto-update.
  7. When the number of videos is takes more space than the screen is wide, the video box wraps to a second line - Resolved 10/20 Release
  8. If multiple versions of the script are installed, they all run, causing awfulness. - Resolved 10/18 Release
  9. Doesn't detect links in whispers - Resolved 10/17 Release
  10. Does not work since major Kong chat update - Resolved 10/17 Release
  11. Invalid video links result in ugly white box - Resolved 6/12 Release
  12. Unembeddable should not even attempt to embed - Resolved 6/12 Release
  13. Urls with a YouTube ID that had a - (dash) in it were failing - Resolved 6/10 Release
  14. Corner tab is too big - Resolved 5/31 Release
  15. Only way to open/close video tray is user command - Resolved 5/26 Release
  16. Icon is crappier than crap. - Resolved 5/26 Release - Thanks, musicdemon
  17. Video resets when another message is posted - Resolved 5/21 Release
  18. Video gets pushed up by other chats as they are posted - Resolved 5/21 Release
  19. Extra parameters in the YouTube link still end up in chat. Like &fmt=22 - Resolved 5/21 Release
Additional requested features:
  1. Ability to resize video
  2. Ability to loop video
  3. Ability to see YouTube video data
  4. Ability to play video in lightbox
  5. Ability to play video in chat area again, but less sucky
  6. Ability to set triangle corner (top/bottom left/right)
  7. Make it so full of animated shininess that you don't even care about games any more.
  8. Load page titles as link names for non-YouTube links
  9. Load images for preview for links to images
  10. Ability to switch to HQ/HD - Resolved 6/12 Release. YouTube embedded player now detects qualities for you after you hit play and presents options within the player.
To share your thoughts, you can leave comments in the discussion or on my Kongregate user profile (as either a public shout or a private whisper). To catch me live an in person, you can try Kongregate's Impossible is Nothing chat room (id=31) or via AIM as TheRealDoomcat. Crystal Ball icon by: musicdemon.