Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- var vide, html;
- var div = document.getElementsByTagName("div")
- for( i=0; i < div.length; i++ )
- {
- if(div[i].className == 'postcolor')
- {
- if(div[i].innerHTML.indexOf("[video]")!=-1 && div[i].innerHTML.indexOf("[/video]")!=-1)
- {
- html = div[i].innerHTML;
- if (html.indexOf('smotri.com')) {
- vide = /\\[video\\]http:\\/\\/(.*?)\\/video\\/view\\/\\?id=(.*?)\\[\\/video\\]/g
- html = html.replace(vide, "<br><embed src='http://pics.$1/scrubber_custom8.swf?file=$2&bufferTime=3&autoStart=false&str_lang=rus&xmlsource=http://pics.$1/cskins/blue/skin_color_lightaqua.xml&xmldatasource=http://pics.$1/skin_ng.xml' quality='high' allowscriptaccess='always' allowfullscreen='true' wmode='opaque' width='400' height='300' type='application/x-shockwave-flash'></embed><br>")
- }
- if (html.indexOf('youtube.com')) {
- vide = /\\[video\\]http:\\/\\/(.*?)\\/watch\\?v=([^\\[]{11,110})\\[\\/video\\]/g
- html = html.replace(vide, "<br><embed src='http://$1/v/$2' type='application/x-shockwave-flash' wmode='transparent' allowfullscreen='true' allowscriptaccess='always' flashvars='fs=1&rel=0' width='425' height='350'></embed><br>")
- }
- if (html.indexOf('rutube.ru')) {
- vide = /\\[video\\]http:\\/\\/(.*?)\\/tracks\\/([^\\[]{1,20})\\.html\\?v=([^\\[]{11,50})\\[\\/video\\]/g
- html = html.replace(vide, "<br><embed src='http://video.$1/$3' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed><br>")
- }
- if (html.indexOf('vimeo.com')) {
- vide = /\\[video\\]http:\\/\\/(.*?)\\/([^\\[]{1,10})\\[\\/video\\]/g
- html = html.replace(vide, "<br><embed src='http://$1/moogaloop.swf?clip_id=$2&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&fullscreen=1' type='application/x-shockwave-flash' wmode='transparent' allowfullscreen='true' allowscriptaccess='always' width='400' height='300'></embed><br>")
- }
- if (html.indexOf('dailymotion.com')) {
- vide = /\\[video\\]http:\\/\\/(.*?)\\/video\\/([^\\[]{6,110})\\[\\/video\\]/g
- html = html.replace(vide, "<br><embed src='http://$1/swf/video/$2' type='application/x-shockwave-flash' wmode='transparent' width='480' height='360' allowfullscreen='true'></embed><br>")
- }
- div[i].innerHTML = html}}}
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement