by darkyndy
EmbeVi Script 


EmbeVi Version

Follow Me

Valid XHTML 1.0 Transitional
Spread Firefox
Opera Browser
GreaseMonkey
EmbeVi User Script [click to display/hide]
Version 2.23
May
13

1. (Major): Added configurable parameter displayEmbed;
2. (Minor): Fixed embed counter;
3. (Major): Fixed embed object properties;
4. (Major): Added support for:
- vplay.ro
- 4shared.com
- webtv.money.ro
- travelistic.com
- peteava.ro
- videoplayer.hu
- facebook.com
- ebaumsworld.com
- qq.com
- v.sina.com.cn
- 56.com
- twiturm.com
- esnips.com
- pandora.tv
- youtu.be
5. (Major): Fixed and added for more sites full screen support
6. (Major): Fix multiple embed of media content;
7. (Major): Speed improvement by not embedding content that is already embedded in page;
8. (Major): Speed improvement by removed links that are duplicates;
9. (Major): Added media link in page with libhtBox effect for video display;
10. (Minor): Added donate link;
11. (Minor): Fixed for Opera browser media button display;
12. (Minor): Fixed for Chrome lightbox effect;
13. (Major): Removed for Opera 'Media' box;
Version 2.2
Oct
11

1. (Major): Fixed correct display for flashvars;
2. (Major): Added support for videos from:
-> gametube.com
-> gloria.tv
-> gotgame.com
-> izlesene.com
-> joost.com
-> justin.tv
-> koreus.com
-> machinima.com
-> msnbc.msn.com
-> video.mail.ru
-> madnessvideo.net
-> video.milliyet.com.tr
-> mofile.com
-> video.mpora.com
-> seehaha.com
-> video.mthai.com
-> onsmash.com
-> rawvegas.tv
-> screentoaster.com
-> sevenload.com
-> shareview.us
-> smotri.com
-> southparkstudios.com
-> spike.com
-> cbssports.com
-> tagtele.com
-> tm-tube.com
-> trtube.com
-> videolog.uol.com.br
-> u-tube.ru
-> videos.sapo.pt
-> videonuz.com
-> vidmax.com
-> vsocial.com
-> myvideo.de
-> myvideo.ch
-> myvideo.be
-> myvideo.nl
3. (Major) Added support for audio from:
-> goear.com
-> ijigg.com
-> jamendo.com
-> jujunation.com
-> nhaccuatui.com
-> last.fm
4. (Major) Added support for playlist (audio or video) from:
-> playlist.com
5. (Minor) Tested all supported sites in Firefox/Opera/Chrome and everything works as expected.
Version 2.1.1
Sep
28

1. (Minor): Added back debug support (commented all debug display);
2. (Major): Fixed embed error when at least two consecutive links are from the same video-site
Version 2.1
Sep
24

1. (Major): Removed support for special functionality for different sites (I will create special version for that);
2. (Major): Code refactoring;
3. (Major): Add documentation;
4. (Major): Remove support for danerd.com and entertane.com (isn't a video portal any more)
5. (Major): Added support for videos from:
-> 123video.com
-> 9you.com
-> blastro.com
-> cellfish.com
-> clarin.com
-> clipjunkie.com
-> cliplife.jp
-> thedailyshow.com
-> comedycentral.com
-> colbertnation.com
-> crunchyroll.com
-> dotsub.com
-> divshare.com
-> fandome.com
-> g4tv.com
-> gamespot.com
6. (Major): Removed debug support (the idea is to make the script as fast as possible);
Version 2.0.3
Sep
4

1. (Major): Fixed if parent link element is null;
Version 2.0.2
Sep
3

1. (Major): Add support for videos from stirileprotv.ro/video;
2. (Minor): Fix auto-embed from signature for elotrolado.net (thanks to NeDark);
Version 2.0.1
Sep
1

1. (Major): Added base settings to add later on special functionality for different web sites;
2. (Minor): Added special functionality for http://www.elotrolado.net , EmbeVi shouldn't embed videos from signature;
3. (Info): As user you can enable special functionality by setting variable acceptSpecialFunctionality to true, or you can let EmbeVi embed every link no matter on witch site you are by setting acceptSpecialFunctionality to false
4. (Info): default acceptSpecialFunctionality is set to true;
Version 2.0
Sep
1

1. (Major): Support for Opera and Google Chrome Browser;
2. (Major): Added custom log function for each browser;
3. (Minor): Better code layout;
4. (Minor): Option to display/hide video;
5. (Info): For Opera and Google Chrome Browser there isn't auto-update functionality.
Version 1.8.4
Aug
8

1. (Minor): Fixed rutube.ru regular expression
Version 1.8.3
Jun
29

1. (Minor): Change of the license agreatment
Version 1.8.2
Jun
28

1. (Major): Fixed auto-update if you update manually the script
2. (Major): Add support for: myplay.com
Version 1.81
Jun
28

1. (Major): Add support for videos from:
-> realitatea.net
-> mtv.com
-> rocktube.us
Version 1.8
Jun
14

1. (Major): Add support for videos from:
-> aniboom.com
-> bragster.com
-> teachertube.com
-> shredordie.com
-> talentrun.com
-> autsch.de
-> tvbvideo.de
-> clipmoon.com
-> viddyou.com
-> spymac.com
-> youare.tv
-> mindbites.com
-> jujunation.com
-> rooftopcomedy.com
-> hamburg1video.de
-> caught-on-video.com
-> bubblare.se
-> jaycut.com
-> spotn.de
-> thexvid.com
-> scivee.tv
-> tvosz.com
-> danerd.com
-> dailycomedy.com
-> deutschlandreporter.de
-> motorsportmad.com
-> rheinvideo.de
-> selfcasttv.com
-> myubo.sk
-> cliphost24.com
-> uvuvideo.org
-> crovideos.com
-> qubetv.tv
-> citytube.de
-> constantcomedy.com
-> luegmol.ch
-> mantoutv.com
->clonevideos.com
-> entertane.com
Version 1.71
Jun
10

1. (Major): Checked the code with http://jslint.com/ and fixed all errors
Version 1.7
Jun
7

1. (Major): Add suport for videos from:
-> video.web.de
-> video.eksenim.mynet.com
-> rutube.ru
-> livevideo.com
-> vbox7.com
-> revver.com
-> current.com
-> dalealplay.com
-> clipfish.de
-> clip.vn
-> livestream.com
-> tangle.com
-> vidiac.com
->5min.com
-> video.vol.at
-> wegame.com
-> youmaker.com
-> snotr.com
-> onetruemedia.com
-> clevver.com
-> kewego.com
-> clipser.com
-> dailyhaha.com
-> howcast.com
Version 1.62
Jun
7

1. (Minor): Some code optimization and better code organization
Version 1.61
May
31

1. (Major): Add suport for videos from:
-> espn.go.com
-> nfl.com
Version 1.6
May
31

1. (Major): fixed auto-start play for videos embeded from ustream.tv
2. Add support for videos from:
-> filebox.ro
-> last.fm
->youku.com
-> ishare.rediff.com
-> vision.rambler.ru
-> tudou.com
-> ku6.com
-> tinypic.com
-> video.libero.it
3. (Major): Auto-update function, that will check each week for a new version and will prompt the user if he wants to upgrade to the latest version
Version 1.5
May
23

1. (Major): Add support for videos from:
-> glumbert.com
-> myvideo.at
-> video.yahoo.com
-> vids.myspace.com
-> liveleak.com
-> vimeo.com
-> gametrailers.com
-> ustream.tv
-> clipshack.com
-> funnyordie.com
Version 1.4
May
23

1. (Minor): Code optimization
Version 1.3
May
23

1. (Major): Optimized the code to run faster (filters only external links)
Version 1.2
May
23

1. (Major): Optimized the code to run faster (added xpath for a better filtering)
Version 1.11
May
21

1. (Minor): Added in the exclusion list cnet.com
Version 1.1
May
21

1. (Major): Add support for videos from:
->cnettv.cnet.com
Version 1.01
May
18

1. (Major): Fixed EmbeVi to work if the user has Flashblock extension enabled or disabled
Version 1.00
May
18

1. (Major): Add support for videos from:
-> youtube.com (video or playlist)
-> 220.ro (video)
-> trilulilu.ro (video)
-> video.google.com (video)
-> dailymotion.com (video)
-> metacafe.com (video)-> collegehumor.com (video)
2. (Major): This script works on every web site except the video sites from where the videos are embeded see list
EmbeVi PHP5 Class [click to display/hide]
Version 1.3
Mar
14

- added option to automatically generate width/height for embedded code based on the ratio calculated based on the default width/height from sites that are supported; This functionality will work pnly if you provide width or height not both;
- added option to set maxWidth and maxHeight;
- added option to get width and height for the embedded code
- added option to get the provider URL (from where the embedded code comes);
- added option to prioritize dimensions (width/height), used for maxWidth/maxHeight. To explain a little how this work:
-> by default embedded code has a width/height;
-> using setWidth/setHeight methods you can set width/height only for one link that will be embedded;
-> using setGlobalWidth/setGlobalHeight methods you can set width/height for all links that will be embedded;
-> using setGlobalMaxWidth/setGlobalMaxHeight methods you can set maximum width/height for all links that will be embedded;
-> default priority is:
 1) default
 2) setWidth/setHeight
 3) setGlobalWidth/setGlobalHeight
 4) setGlobalMaxWidth/setGlobalMaxWidth
in words, if you set width, global width will be ignored and so on...
- added option to prioritize maxWidth/maxHeight, by using this option maxWidth/maxHeight will have the greatest importance;
- added option to get info from EmbeVi, just in case you need to do extra stuff, and to have a identifier;
- Methods that ware added to support functionality from above:
-> setGlobalMaxHeight($maxHeight)
   you can set a maximum height that will be used for generated embedded code;
-> unsetGlobalMaxHeight()
   you can unset the maximum height;
-> setGlobalMaxWidth($maxWidth)
   you can set a maximum width that will be used for generated embedded code;
-> unsetGlobalMaxWidth()
   you can unset the maximum width;
-> getHeight()
   you can get the height that was used for the last embedded code;
-> getWidth()
   you can get the width that was used for the last embedded code;
-> setKeepRatio()
   you can say that you want to keep ratio, this will work only if you supplied only width or only height properties;
-> unsetKeepRatio()
   you can disable width//height calculation, in this case if you provided only width the height will be the default height from EmbeVi;
-> setHtmlDecode()
   you can enable to use htmlspecialchars_decode PHP function in parseHtml method for the $html parameter, by default is enabled;
-> unsetHtmlDecode()
   you can disable to use htmlspecialchars_decode PHP function in parseHtml method for the $html parameter;
-> getEmbeddedProvider()
   you can get the URL for the last provider used, it will return array;
-> getEmbeddedInfo()
   you can get info from EmbeVi about the last embedded code;
Tips
- You should call methods: setWidth/setGlobalWidth/setGlobalMaxWidth and setHeight/setGlobalHeight/setGlobalMaxHeight after calling method parseUrl but before getCode method, in order to work properly;
- You should call methods: getWidth/getHeight/getEmbeddedProvider/getEmbeddedInfo after parseUrl method, in order to work properly;
Version 1.2
Nov
22

- modified regular expression for parseHtml with a more powerful and quick one
- added setAcceptShortUrl method, if you call this method then every link will be parsed to check if it's from a list of supported shorted URL's services and get's the real link
- added unsetAcceptShortUrl method, call this method if you don't want any more to check if a link is a short URL and behind it can be video link
- default this script will not parse shorten URL's
- added a list of 130 short URL's sites that can be parsed
Version 1.1
Nov
09

- added setGlobalWidth method, now you can set this width and all embedded video will have this width
- added unsetGlobalWidth method, unset the width passed with setGlobalWidth method
- added setGlobalHeight method, now you can set this height and all embedded video will have this height
- added unsetGlobalHeight method, unset the height passed with setGlobalHeight method
- added setBeforeHtml method, you can set HTML that will appear before the embedded code
- added setAfterHtml method, you can set HTML that will appear after the embedded code
- added two optional parameters for the getCode method
-> $addHtmlBefore, if is set to true then before the embedded code it will be added
the default before HTML or the before HTML that you passed using method setBeforeHtml
-> $addHtmlAfter, if is set to true then after the embedded code it will be added
the default after HTML or the after HTML that you passed using method setAfterHtml
- added parseText method, you can now give to this method plain text and EmbeVi will do the job
-> this method has 4 parameters:
=> $text - compulsory parameter, string that will contain text;
=> $keepLink - optional parameter (default is false), boolean that will say if the link will be kept
=> $addHtmlBefore - optional parameter (default is false), boolean that will say if you want to add HTML before the embedded code
=> $addHtmlAfter - optional parameter (default is false), boolean that will say if you want to add HTML after the embedded code
- added parseHtml method, you can now give to this method HTML code and EmbeVi will do the job
-> same parameters as parseText method

Copyright ©2009 All rights reserved to darkyndy
All graphic artwork is credited to Catalin Cimpanu
The EmbeVi script is licensed under the GNU General Public License as published by the Free Software Foundation. Read the complete license here