Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (_=>{let i,e,v,a=document.body.getElementsByTagName('a');for(i=a.length;i--;){if(a[i].hostname=='youtu.be'){a[i].outerHTML='<iframe width="640" height="360" src="//www.youtube.com/embed/'+a[i].pathname+'" frameborder="0" allowfullscreen></iframe>';continue};e=a[i].href.split('.').pop();v=(e=='webm'||e=='mp4');if(e=='mp3'||e=='ogg'||v)a[i].outerHTML='<video height="'+(v?'360':'30')+'" width="640" controls><source src="'+a[i].href+'"></video>'}})()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement