SHARE
TWEET

gs_vrijmibo

a guest Oct 28th, 2011 2,893 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:var l = document.getElementsByTagName('a'), j = l.length, z = /\.(jpg|gif|png)$/, y = /.*youtube\.com\/watch\?v=([\w-]+).*/;for(var i = 0; i < j; i++) {var m = l[i], src = m.href;if (src.match(z)) {var n = document.createElement('img');n.src = src;n.title = m.innerText;n.style.width='480px';n.style.verticalAlign = 'top';n.style.margin = '2px';m.replaceChild(n, m.childNodes[0]);} else if (src.match(y)) {var n = document.createElement('iframe');n.style.width = '480px';n.style.height = '390px';n.src = src.replace(y, 'http://www.youtube.com/embed/$1');n.frameborder = 1;} else {continue;}n.style.display = 'block';m.replaceChild(n, m.childNodes[0]);}
  2.  
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top