Guest User

gs_vrijmibo

a guest
Oct 28th, 2011
2,963
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